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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x477fc8
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x497750]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x497750]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x40bfe9
mov ecx, dword [edi + 0x20]
mov eax, dword [ecx]
mov edx, dword [edi + 0x30]
mov ecx, dword [edx]
add ecx, eax
cmp eax, ecx
jae 0x40bfe9
mov eax, edx
add dword [eax], 0xffffffff
mov edi, dword [edi + 0x20]
mov eax, dword [edi]
lea edx, [eax + 1]
mov dword [edi], edx
movzx eax, byte [eax]
jmp 0x40c29f
mov eax, dword [edi + 0x4c]
test eax, eax
je 0x40c29c
cmp dword [edi + 0x3c], 0
jne 0x40c014
push eax
call fcn.0043e7a5
add esp, 4
cmp eax, 0xffffffff
je 0x40c29c
movzx eax, al
jmp 0x40c29f
lea ecx, [esp + 0x4c]
call fcn.004053a0
mov dword [esp + 0x78], 0
mov eax, dword [edi + 0x4c]
push eax
call fcn.0043e7a5
mov ebx, eax
add esp, 4
cmp ebx, 0xffffffff
je 0x40c293
or ecx, 0xffffffff
sub ecx, dword [esp + 0x60]
cmp ecx, 1
ja 0x40c04d
call fcn.00457e2a
mov esi, dword [esp + 0x60]
push 0
add esi, 1
push esi
lea ecx, [esp + 0x54]
call fcn.00401f20
test al, al
je 0x40c08f
lea edx, [esp + 0x18]
mov byte [esp + 0x18], bl
mov ebx, dword [esp + 0x60]
push edx
lea ecx, [esp + 0x50]
call fcn.00401ce0
add eax, ebx
push eax
call fcn.004013c0
add esp, 8
push esi
lea ecx, [esp + 0x50]
call fcn.00401ee0
lea ecx, [esp + 0x4c]
call fcn.00401ce0
lea ecx, [esp + 0x20]
mov esi, eax
call fcn.00401430
test esi, esi
je 0x40c0c5
lea ecx, [esp + 0x4c]
call fcn.00401ce0
cmp eax, esi
ja 0x40c0c5
lea ecx, [esp + 0x4c]
call fcn.00401ce0
add eax, dword [esp + 0x60]
cmp esi, eax
jbe 0x40c0ca
call fcn.0043b56c
lea eax, [esp + 0x4c]
mov ecx, eax
cmp ecx, 0xfffffffe
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], esi
je 0x40c0f4
call fcn.00401ce0
mov edx, dword [esp + 0x20]
add eax, dword [edx + 0x14]
cmp dword [esp + 0x24], eax
jb 0x40c0f4
call fcn.0043b56c
mov ebx, dword [esp + 0x24]
lea ecx, [esp + 0x4c]
call fcn.00401ce0
lea ecx, [esp + 0x30]
mov esi, eax
call fcn.00401430
test esi, esi
je 0x40c12e
lea ecx, [esp + 0x4c]
call fcn.00401ce0
cmp eax, esi
ja 0x40c12e
lea ecx, [esp + 0x4c]
call fcn.00401ce0
add eax, dword [esp + 0x60]
cmp esi, eax
jbe 0x40c133
call fcn.0043b56c
lea eax, [esp + 0x4c]
mov ecx, eax
cmp ecx, 0xfffffffe
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], esi
je 0x40c15d
call fcn.00401ce0
mov edx, dword [esp + 0x30]
add eax, dword [edx + 0x14]
cmp dword [esp + 0x34], eax
jb 0x40c15d
call fcn.0043b56c
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x4c]
call fcn.00401ec0
mov ecx, dword [edi + 0x3c]
mov edx, dword [ecx]
add eax, ebx
lea ebx, [esp + 0x38]
push ebx
lea ebx, [esp + 0x1c]
push ebx
lea ebx, [esp + 0x1f]
push ebx
lea ebx, [esp + 0x28]
push ebx
push eax
push esi
lea eax, [edi + 0x44]
push eax
mov eax, dword [edx + 0x10]
call eax
test eax, eax
jl 0x40c293
cmp eax, 1
jle 0x40c1f3
cmp eax, 3
jne 0x40c293
lea ecx, [esp + 0x4c]
call fcn.00401ec0
cmp eax, 1
jb 0x40c27c
push 1
lea ebx, [esp + 0x40]
lea esi, [esp + 0x50]
call fcn.0040c8c0
mov esi, eax
call fcn.0040d2a0
push eax
lea ecx, [esp + 0x1f]
push 1
push ecx
call fcn.0043aedb
movzx esi, byte [esp + 0x27]
add esp, 0x10
lea ecx, [esp + 0x4c]
call fcn.00401a70
mov eax, esi
jmp 0x40c29f
lea ecx, [esp + 0x17]
cmp dword [esp + 0x38], ecx
jne 0x40c2bd
lea ecx, [esp + 0x4c]
call fcn.00401ce0
lea ecx, [esp + 0x28]
mov esi, eax
call fcn.00401430
test esi, esi
je 0x40c237
lea ecx, [esp + 0x4c]
call fcn.00401ce0
cmp eax, esi
ja 0x40c237
lea ecx, [esp + 0x4c]
call fcn.00401ce0
add eax, dword [esp + 0x60]
cmp esi, eax
jbe 0x40c23c
call fcn.0043b56c
lea edx, [esp + 0x4c]
mov eax, edx
cmp eax, 0xfffffffe
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], esi
je 0x40c268
mov ecx, edx
call fcn.00401ce0
mov ecx, dword [esp + 0x28]
add eax, dword [ecx + 0x14]
cmp dword [esp + 0x2c], eax
jb 0x40c268
call fcn.0043b56c
mov edx, dword [esp + 0x1c]
sub edx, dword [esp + 0x2c]
lea ecx, [esp + 0x4c]
push edx
push 0
call fcn.00401e20
mov eax, dword [edi + 0x4c]
push eax
call fcn.0043e7a5
mov ebx, eax
add esp, 4
cmp ebx, 0xffffffff
jne 0x40c03c
lea ecx, [esp + 0x4c]
call fcn.00401a70
or eax, 0xffffffff
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0043ad5b
mov esp, ebp
pop ebp
ret
lea ebx, [esp + 0x44]
lea esi, [esp + 0x4c]
call fcn.0040c8c0
mov esi, eax
call fcn.0040d2a0
mov ebx, eax
sub ebx, dword [esp + 0x1c]
lea ecx, [esp + 0x4c]
call fcn.00401ec0
mov esi, eax
add esi, ebx
test esi, esi
jle 0x40c30d
jmp 0x40c2f0
mov eax, dword [esp + 0x1c]
mov edx, dword [edi + 0x4c]
movsx ecx, byte [esi + eax - 1]
sub esi, 1
push edx
push ecx
call fcn.0043e4ee
add esp, 8
test esi, esi
jg 0x40c2f0
movzx esi, byte [esp + 0x17]
lea ecx, [esp + 0x4c]
call fcn.00401a70
mov eax, esi
jmp 0x40c29f