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

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
cmp esi, eax
je 0x40cc0a
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [0x4ae204]
push edi
lea edi, [ebx + 0x14]
mov ecx, dword [ebx]
mov eax, dword [esi]
cmp ecx, eax
je 0x40c9d3
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x40c9ad
mov edx, dword [0x4bf084]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x40c9b4
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x40c9c2
push eax
mov eax, dword [eax - 8]
push eax
mov ecx, ebx
call fcn.00404390
jmp 0x40c9d3
mov ecx, ebx
call fcn.004046d0
mov eax, dword [esi]
mov dword [ebx], eax
add eax, 0xfffffff4
push eax
call ebp
lea ecx, [esi + 8]
push ecx
lea ecx, [edi - 0xc]
call fcn.00406200
mov edx, dword [esi + 0xc]
mov dword [edi - 8], edx
mov eax, dword [esi + 0x10]
mov dword [edi - 4], eax
mov ecx, dword [edi]
mov eax, dword [esi + 0x14]
cmp ecx, eax
je 0x40ca2f
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x40ca08
mov edx, dword [0x4bf084]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x40ca0f
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x40ca1d
mov ecx, dword [eax - 8]
push eax
push ecx
mov ecx, edi
call fcn.00404390
jmp 0x40ca2f
mov ecx, edi
call fcn.004046d0
mov eax, dword [esi + 0x14]
mov dword [edi], eax
add eax, 0xfffffff4
push eax
call ebp
lea edx, [esi + 0x18]
lea ecx, [edi + 4]
push edx
call fcn.00406200
lea eax, [esi + 0x1c]
lea ecx, [edi + 8]
push eax
call fcn.00406200
lea ecx, [esi + 0x20]
push ecx
lea ecx, [edi + 0xc]
call fcn.00406200
lea edx, [esi + 0x24]
lea ecx, [edi + 0x10]
push edx
call fcn.00406200
mov eax, dword [esi + 0x28]
lea ecx, [esi + 0x2c]
push ecx
lea ecx, [edi + 0x18]
mov dword [edi + 0x14], eax
call fcn.00406200
lea edx, [esi + 0x30]
lea ecx, [edi + 0x1c]
push edx
call fcn.00406200
lea eax, [esi + 0x34]
lea ecx, [edi + 0x20]
push eax
call fcn.00406200
lea ecx, [esi + 0x38]
push ecx
lea ecx, [edi + 0x24]
call fcn.0040dde0
lea edx, [esi + 0x48]
lea ecx, [edi + 0x34]
push edx
call fcn.00406200
lea eax, [esi + 0x4c]
lea ecx, [edi + 0x38]
push eax
call fcn.00406200
lea ecx, [esi + 0x50]
push ecx
lea ecx, [edi + 0x3c]
call fcn.00406200
lea edx, [esi + 0x54]
lea ecx, [edi + 0x40]
push edx
call fcn.00406200
lea eax, [esi + 0x58]
lea ecx, [edi + 0x44]
push eax
call fcn.00406200
lea ecx, [esi + 0x5c]
push ecx
lea ecx, [edi + 0x48]
call fcn.00406200
lea edx, [esi + 0x60]
lea ecx, [edi + 0x4c]
push edx
call fcn.00406200
lea eax, [esi + 0x64]
lea ecx, [edi + 0x50]
push eax
call fcn.00406200
lea ecx, [esi + 0x68]
push ecx
lea ecx, [edi + 0x54]
call fcn.0040dde0
mov edx, dword [esi + 0x78]
mov dword [edi + 0x64], edx
mov eax, dword [esi + 0x7c]
mov dword [edi + 0x68], eax
mov ecx, dword [esi + 0x80]
mov dword [edi + 0x6c], ecx
mov edx, dword [esi + 0x84]
mov dword [edi + 0x70], edx
mov eax, dword [esi + 0x88]
mov dword [edi + 0x74], eax
mov ecx, dword [esi + 0x8c]
mov dword [edi + 0x78], ecx
mov edx, dword [esi + 0x90]
mov dword [edi + 0x7c], edx
mov eax, dword [esi + 0x94]
mov dword [edi + 0x80], eax
mov ecx, dword [esi + 0x98]
mov dword [edi + 0x84], ecx
mov edx, dword [esi + 0x9c]
mov dword [edi + 0x88], edx
mov eax, dword [esi + 0xa0]
mov dword [edi + 0x8c], eax
mov ecx, dword [esi + 0xa4]
lea edx, [esi + 0xa8]
mov dword [edi + 0x90], ecx
push edx
lea ecx, [edi + 0x94]
call fcn.00406200
mov eax, dword [esi + 0xac]
mov dword [edi + 0x98], eax
mov ecx, dword [esi + 0xb0]
mov dword [edi + 0x9c], ecx
mov edx, dword [esi + 0xb4]
lea eax, [esi + 0xb8]
lea ecx, [edi + 0xa4]
push eax
mov dword [edi + 0xa0], edx
call fcn.00406200
mov ecx, dword [esi + 0xc0]
add esi, 0xd0
mov dword [edi + 0xac], ecx
mov edx, dword [esi - 0xc]
mov dword [edi + 0xb0], edx
mov eax, dword [esi - 8]
mov dword [edi + 0xb4], eax
mov ecx, dword [esi - 4]
mov eax, dword [esp + 0x18]
mov dword [edi + 0xb8], ecx
add ebx, 0xd0
add edi, 0xd0
cmp esi, eax
jne 0x40c991
pop edi
mov eax, ebx
pop ebp
pop ebx
pop esi
ret
mov eax, dword [esp + 0x10]
pop esi
ret