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

Disassembly:
push 0xffffffffffffffff
push 0x447aa8
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45fa6c]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 4], 0
jne 0x4020fe
push 0x44c800
call fcn.00401f10
jmp 0x402567
mov eax, dword [esp + 0x74]
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00401610
lea ebp, [eax + 0x10]
add esp, 4
mov dword [esp + 0x1c], ebp
mov edi, dword [esi + 4]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x14], edi
test edi, edi
je 0x402132
mov ecx, dword [edi]
mov edx, dword [ecx + 4]
push edi
call edx
lea ecx, [esp + 0x50]
mov byte [esp + 0x6c], 1
call fcn.004153a0
mov eax, dword [ebp - 0xc]
mov byte [esp + 0x6c], 2
test eax, eax
jl 0x40244d
push 0x44c810
push ebp
call fcn.00432742
add esp, 8
test eax, eax
je 0x40244d
sub eax, ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x40244d
mov bl, 3
push esi
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x24]
call fcn.00401840
mov eax, dword [ebp - 0xc]
sub eax, esi
dec eax
push eax
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x24]
mov byte [esp + 0x74], bl
call fcn.004017c0
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x70], 4
call fcn.00401c30
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x6c], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4021d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x58]
lea ecx, [esp + 0x74]
push ecx
push edx
lea ecx, [esp + 0x58]
call fcn.004157e0
mov ebp, dword [esp + 0x1c]
cmp dword [ebp - 0xc], 0
jge 0x4021f2
or esi, 0xffffffff
jmp 0x40220d
push 0x44c810
push ebp
call fcn.00432742
add esp, 8
test eax, eax
jne 0x402209
or esi, 0xffffffff
jmp 0x40220d
sub eax, ebp
mov esi, eax
mov eax, dword [esp + 0x74]
add eax, 0xfffffff0
mov byte [esp + 0x6c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402232
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, 0xffffffff
jne 0x402175
mov eax, dword [esp + 0x58]
xor esi, esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x74], esi
xor edi, edi
mov byte [esp + 0x6c], 5
test eax, eax
jle 0x4023dd
test esi, esi
je 0x402270
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
push esi
call edx
mov dword [esp + 0x74], 0
mov esi, dword [esp + 0x74]
mov dword [esp + 0x18], 0
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx]
mov edx, dword [eax + 0x5c]
lea ecx, [esp + 0x18]
push ecx
push ebx
mov byte [esp + 0x74], 6
call edx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4023c1
test edi, edi
jl 0x402464
cmp edi, dword [esp + 0x58]
jge 0x402464
mov eax, dword [esp + 0x54]
mov eax, dword [eax + edi*4]
push eax
lea ecx, [esp + 0x2c]
call fcn.00401370
lea ecx, [esp + 0x30]
push ecx
mov byte [esp + 0x70], 7
call dword [0x44c364]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x28]
mov edx, 8
mov word [esp + 0x30], dx
lea edx, [esp + 0x40]
push edx
lea edx, [esp + 0x34]
mov dword [esp + 0x3c], esi
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
cmp word [esp + 0x40], 9
jne 0x4023f8
mov eax, dword [esp + 0x48]
mov dword [esp + 0x24], 0
test eax, eax
je 0x402322
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push edx
push 0x44c794
push eax
mov eax, dword [ecx]
call eax
lea ecx, [esp + 0x40]
push ecx
call dword [0x44c368]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4023f8
mov dword [esp + 0x20], 0
mov edx, dword [eax]
mov edx, dword [edx + 0xd0]
lea ecx, [esp + 0x20]
push ecx
push eax
mov byte [esp + 0x74], 9
call edx
cmp dword [esp + 0x20], 0
je 0x4023e3
lea eax, [esp + 0x30]
push eax
call dword [0x44c368]
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x18]
call fcn.00401480
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x78]
call fcn.00401480
mov eax, dword [esp + 0x20]
mov byte [esp + 0x6c], 8
test eax, eax
je 0x40239d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x24]
mov byte [esp + 0x6c], 7
test eax, eax
je 0x4023b2
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push esi
call dword [0x44c360]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x74]
mov byte [esp + 0x6c], 5
test eax, eax
je 0x4023d2
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
inc edi
cmp edi, dword [esp + 0x2c]
jl 0x402258
mov ebx, dword [esp + 0x14]
jmp 0x402418
mov eax, dword [esp + 0x24]
mov byte [esp + 0x6c], 7
test eax, eax
je 0x4023f8
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push esi
call dword [0x44c360]
mov eax, dword [esp + 0x18]
mov byte [esp + 0x6c], 5
test eax, eax
je 0x402414
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov esi, dword [esp + 0x74]
cmp ebx, esi
je 0x402438
test esi, esi
je 0x402428
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push esi
call ecx
test ebx, ebx
je 0x402434
mov edx, dword [ebx]
mov eax, dword [edx + 8]
push ebx
call eax
mov dword [esp + 0x14], esi
mov byte [esp + 0x6c], 2
test esi, esi
je 0x402449
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
push esi
call edx
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x402469
lea ecx, [esp + 0x50]
mov byte [esp + 0x6c], 1
call fcn.004156e7
jmp 0x402543
call fcn.00414c35
mov esi, dword [esp + 0x78]
mov ecx, dword [edi]
mov edx, dword [ecx + 0x1c]
push esi
push edi
call edx
test eax, eax
jl 0x402528
push ebp
lea ecx, [esp + 0x78]
call fcn.00401370
mov edx, dword [esp + 0x7c]
mov eax, dword [esi]
mov ecx, dword [eax]
push edx
push 0x800
push 1
lea edx, [esp + 0x80]
push edx
push 0x4537cc
push eax
mov eax, dword [ecx + 0x14]
mov byte [esp + 0x84], 0xa
call eax
mov ecx, dword [esp + 0x74]
push ecx
test eax, eax
jge 0x4024df
call dword [0x44c360]
lea ecx, [esp + 0x50]
mov byte [esp + 0x6c], 1
call fcn.004156e7
mov edx, dword [edi]
mov eax, dword [edx + 8]
push edi
mov byte [esp + 0x70], 0
call eax
jmp 0x402543
call dword [0x44c360]
lea ecx, [esp + 0x50]
mov byte [esp + 0x6c], 1
call fcn.004156e7
mov edx, dword [edi]
mov eax, dword [edx + 8]
push edi
mov byte [esp + 0x70], 0
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x6c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402524
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
jmp 0x402569
lea ecx, [esp + 0x50]
mov byte [esp + 0x6c], 1
call fcn.004156e7
mov ecx, dword [edi]
mov edx, dword [ecx + 8]
push edi
mov byte [esp + 0x70], 0
call edx
lea eax, [ebp - 0x10]
mov dword [esp + 0x6c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402567
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 0xc