Function at 0x401b60
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x40f0c0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebp
push esi
push edi
mov eax, dword [0x414050]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x28]
mov esi, ecx
cmp dword [esi + 4], 0
jne 0x401cef
mov eax, dword [esi + 0x18]
push 0x20
push str.a_ccsUTF_8
push eax
call fcn.00402ce1
add esp, 0xc
test eax, eax
mov dword [esp + 0x14], eax
je 0x401d97
mov eax, dword [0x41510c]
mov edx, dword [eax + 0xc]
mov ecx, 0x41510c
call edx
add eax, 0x10
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], 0
cmp dword [esi + 8], 0
je 0x401c22
lea eax, [esp + 0x10]
push eax
push esi
call fcn.00401db0
mov byte [esp + 0x20], 1
mov ecx, dword [eax]
push ecx
push 0x41265c
lea edi, [esp + 0x30]
call fcn.00402170
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401c22
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esi + 0x10], 0
je 0x401c70
lea ecx, [esp + 0x10]
push ecx
call fcn.00401e90
mov byte [esp + 0x20], 2
mov edx, dword [eax]
push edx
push 0x41265c
lea edi, [esp + 0x30]
call fcn.00402170
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401c70
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebp, ebp
jne 0x401c78
xor eax, eax
jmp 0x401c8f
mov eax, ebp
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401c80
sub eax, edx
sar eax, 1
push eax
push ebp
lea ecx, [esp + 0x30]
push ecx
call fcn.004020c0
mov esi, dword [esp + 0x28]
mov ecx, dword [esi - 0xc]
lea eax, [ecx - 1]
test eax, eax
jl 0x401ce5
cmp eax, ecx
jg 0x401ce5
movzx eax, word [esi + eax*2]
cmp ax, 0xa
je 0x401ccc
push 1
push 0x412664
lea edx, [esp + 0x30]
push edx
call fcn.004020c0
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x14]
push esi
push edi
call fcn.00402da7
push edi
call fcn.00402ead
add esp, 0xc
jmp 0x401d73
push 0x80070057
call fcn.00401500
mov edx, dword [0x41510c]
mov eax, dword [edx + 0xc]
mov ecx, 0x41510c
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
test ebp, ebp
mov dword [esp + 0x20], 3
jne 0x401d16
xor eax, eax
jmp 0x401d2f
mov eax, ebp
lea edx, [eax + 2]
jmp 0x401d20
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401d20
sub eax, edx
sar eax, 1
push eax
push ebp
lea ecx, [esp + 0x30]
push ecx
call fcn.004020c0
mov esi, dword [esp + 0x28]
mov ecx, dword [esi - 0xc]
lea eax, [ecx - 1]
test eax, eax
jl 0x401ce5
cmp eax, ecx
jg 0x401ce5
movzx eax, word [esi + eax*2]
cmp ax, 0xa
je 0x401d6c
push 1
push 0x412664
lea edx, [esp + 0x30]
push edx
call fcn.004020c0
mov esi, dword [esp + 0x28]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esi - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401d97
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret 4