Function at 0x4050e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4299ec
mov eax, dword fs:[0]
push eax
mov eax, 0x1104
mov dword fs:[0], esp
call fcn.0040f870
mov eax, dword [0x43eee4]
mov dword [esp + 0x1100], eax
mov eax, dword [esp + 0x1114]
mov eax, dword [eax]
push ebp
push esi
sub eax, 0x10
push edi
push eax
mov esi, ecx
call fcn.00401eb0
add eax, 0x10
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x1118], 0
call fcn.0041c9eb
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0xc], edi
lea eax, [esp + 0x10]
push eax
mov ecx, esi
mov byte [esp + 0x111c], 1
call fcn.00404fe0
test eax, eax
jne 0x40518e
mov byte [esp + 0x1118], al
lea eax, [edi - 0x10]
or ebp, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405185
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
jmp 0x4051c1
mov esi, dword [esp + 0x10]
mov eax, dword [esi - 0xc]
cmp eax, 0x14
je 0x4051e3
lea eax, [edi - 0x10]
or ebp, 0xffffffff
mov byte [esp + 0x1118], 0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4051be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esi - 0x10]
mov dword [esp + 0x1118], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x4051dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x405490
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
call fcn.00402340
mov eax, dword [esp + 0xc]
mov esi, dword [eax - 0xc]
test esi, esi
jge 0x405206
push 0x80070057
call fcn.00401ad0
cmp esi, 0x12
mov cl, byte [eax]
mov byte [esp + 0x14], cl
jl 0x4051fc
test esi, esi
push ebx
mov bl, byte [eax + 0x12]
jg 0x405223
push 0x80070057
call fcn.00401ad0
mov ecx, dword [eax - 4]
mov edi, 1
cmp ecx, edi
jle 0x405240
mov edx, dword [eax - 0xc]
push edx
lea ecx, [esp + 0x14]
call fcn.00401c20
mov eax, dword [esp + 0x10]
test esi, esi
mov byte [eax], bl
jl 0x40528c
cmp esi, dword [eax - 8]
jg 0x40528c
mov dword [eax - 0xc], esi
mov byte [esi + eax], 0
mov eax, dword [esp + 0x18]
push eax
push 0x12
lea ecx, [esp + 0x18]
call fcn.00404f00
mov eax, dword [esp + 0x10]
mov esi, dword [eax - 0xc]
cmp esi, 0xa
jge 0x405278
push 0x80070057
call fcn.00401ad0
cmp esi, 0x13
mov cl, byte [eax + 0xa]
mov byte [esp + 0x18], cl
jl 0x40528c
cmp esi, 0xa
mov bl, byte [eax + 0x13]
jg 0x405296
push 0x80070057
call fcn.00401ad0
cmp dword [eax - 4], edi
jle 0x4052ac
mov edx, dword [eax - 0xc]
push edx
lea ecx, [esp + 0x14]
call fcn.00401c20
mov eax, dword [esp + 0x10]
test esi, esi
mov byte [eax + 0xa], bl
jl 0x40528c
cmp esi, dword [eax - 8]
jg 0x40528c
mov dword [eax - 0xc], esi
mov byte [esi + eax], 0
mov eax, dword [esp + 0x18]
push eax
push 0x13
lea ecx, [esp + 0x18]
call fcn.00404f00
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x54], edx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x58], edx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x5c], edx
xor esi, esi
mov byte [esp + 0x78], cl
mov byte [esp + 0x60], dl
or ebp, 0xffffffff
mov ebx, 2
lea ecx, [ecx]
push ebx
push esi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
call fcn.00404f60
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x1120], bl
call fcn.00402340
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x111c], 1
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405356
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov edi, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
lea ecx, [esp + 0x4c]
push ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
push str._02x
push edi
mov byte [esp + 0x6c], al
call fcn.0040fa3b
mov eax, esi
cdq
sub eax, edx
mov dl, byte [esp + 0x58]
sar eax, 1
add esi, ebx
add esp, 0xc
cmp esi, 0x14
mov byte [esp + eax + 0x64], dl
jl 0x405310
xor eax, eax
mov edx, dword [esp + 0x64]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x68]
xor esi, esi
xor ecx, ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], edx
xor eax, eax
movzx dx, byte [esp + eax + 0x64]
add ecx, edx
inc eax
cmp eax, 8
jl 0x4053e1
cmp cx, word [esp + 0x6c]
jne 0x40544a
mov eax, dword [esp + 0x1138]
push 0x38
push eax
lea ecx, [esp + 0x84]
call fcn.004014a0
lea ecx, [esp + 0x7c]
mov byte [esp + 0x111c], 3
call fcn.004017f0
test eax, eax
lea ecx, [esp + 0x7c]
je 0x40543d
push 1
lea eax, [esp + 0x28]
push eax
call fcn.00401880
test eax, eax
je 0x4054b6
lea ecx, [esp + 0x7c]
mov byte [esp + 0x111c], 1
call fcn.00401520
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x111c], 0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40546f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
mov dword [esp + 0x111c], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x40548d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1110]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1104]
pop ebp
call fcn.0040ef5a
add esp, 0x1110
ret 0x18
mov cl, byte [esp + 0x28]
mov eax, dword [esp + 0x24]
xor edx, edx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], edx
mov dword [esp + 0x20], esi
mov byte [esp + 0x20], cl
mov dword [esp + 0x5c], edx
push 0xa
lea ecx, [esp + 0x50]
mov byte [esp + 0x64], dl
mov edx, dword [esp + 0x24]
push ecx
push edx
push eax
mov dword [esp + 0x2c], esi
call fcn.0041001b
lea eax, [esp + 0x5c]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405500
mov ecx, dword [esp + 0x112c]
sub eax, edx
push eax
lea eax, [esp + 0x50]
push eax
call fcn.004020a0
movzx ecx, byte [esp + 0x29]
mov edx, dword [esp + 0x1128]
mov eax, dword [esp + 0x1130]
mov dword [edx], ecx
mov cl, byte [esp + 0x2a]
movzx dx, byte [esp + 0x2b]
mov byte [eax], cl
mov eax, dword [esp + 0x1134]
lea ecx, [esp + 0x7c]
mov word [eax], dx
mov byte [esp + 0x111c], 1
call fcn.00401520
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x111c], 0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40557c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
mov dword [esp + 0x111c], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x40559a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
jmp 0x40548f