Function at 0x40c2e0
Capabilities:
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x43f5e3
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44dd70]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov ebp, ecx
mov ebx, dword [esp + 0x70]
test ebx, ebx
jne 0x40c319
lea eax, [ebx + 5]
jmp 0x40c695
cmp dword [ebp + 0x4c], 0
jne 0x40c329
mov eax, 2
jmp 0x40c695
mov edi, dword [sym.imp.MSVCR90.dll_fwrite]
xor eax, eax
cmp dword [esp + 0x74], eax
push ebx
sete al
push 1
lea ecx, [esp + 0x2c]
push 4
push ecx
mov dword [esp + 0x34], 0x42443353
lea eax, [eax + eax + 1]
mov dword [esp + 0x38], eax
call edi
add esp, 0x10
cmp eax, 1
jne 0x40c6c6
push ebx
push eax
lea edx, [esp + 0x30]
push 4
push edx
call edi
add esp, 0x10
cmp eax, 1
jne 0x40c6c6
push ebx
push eax
push 4
push ebp
call edi
add esp, 0x10
cmp eax, 1
jne 0x40c6c6
push ebx
push eax
lea eax, [ebp + 4]
push 4
push eax
call edi
add esp, 0x10
cmp eax, 1
jne 0x40c6c6
push ebx
push eax
lea ecx, [ebp + 8]
push 4
push ecx
call edi
add esp, 0x10
cmp eax, 1
jne 0x40c6c6
push ebx
push eax
lea edx, [ebp + 0xc]
push 4
push edx
call edi
add esp, 0x10
cmp eax, 1
jne 0x40c6c6
push ebx
push eax
lea eax, [ebp + 0x10]
push 4
push eax
call edi
add esp, 0x10
cmp eax, 1
jne 0x40c6c6
push ebx
push eax
lea esi, [ebp + 0x14]
push 4
push esi
call edi
add esp, 0x10
cmp eax, 1
jne 0x40c6c6
push ebx
push 1
lea eax, [ebp + 0x18]
push 4
push eax
call edi
add esp, 0x10
cmp eax, 1
jne 0x40c6c6
push ebx
push eax
lea ecx, [ebp + 0x1c]
push 4
push ecx
call edi
add esp, 0x10
cmp eax, 1
jne 0x40c6c6
push ebx
push eax
lea edx, [ebp + 0x20]
push 4
push edx
call edi
add esp, 0x10
cmp eax, 1
jne 0x40c6c6
push ebx
push eax
lea eax, [ebp + 0x24]
push 4
push eax
call edi
add esp, 0x10
cmp eax, 1
jne 0x40c6c6
push ebx
push eax
lea ecx, [ebp + 0x28]
push 4
push ecx
call edi
add esp, 0x10
cmp eax, 1
jne 0x40c6c6
push ebx
push eax
lea edx, [ebp + 0x2c]
push 4
push edx
call edi
add esp, 0x10
cmp eax, 1
jne 0x40c6c6
push ebx
push eax
lea eax, [ebp + 0x30]
push 4
push eax
call edi
add esp, 0x10
cmp eax, 1
jne 0x40c6c6
push ebx
push eax
lea ecx, [ebp + 0x34]
push 4
push ecx
call edi
add esp, 0x10
cmp eax, 1
jne 0x40c6c6
push ebx
push eax
lea edx, [ebp + 0x38]
push 4
push edx
call edi
add esp, 0x10
cmp eax, 1
jne 0x40c6c6
push ebx
push eax
lea eax, [ebp + 0x3c]
push 4
push eax
call edi
add esp, 0x10
cmp eax, 1
jne 0x40c6c6
push ebx
push eax
lea ecx, [ebp + 0x40]
push 4
push ecx
call edi
add esp, 0x10
cmp eax, 1
jne 0x40c6c6
push ebx
push eax
lea edx, [ebp + 0x44]
push 4
push edx
call edi
add esp, 0x10
cmp eax, 1
jne 0x40c6c6
push ebx
push eax
lea eax, [ebp + 0x48]
push 4
push eax
call edi
add esp, 0x10
cmp eax, 1
jne 0x40c6c6
push 0x405980
push 0x40d1a0
push 2
push 0x18
lea ecx, [esp + 0x40]
push ecx
call fcn.0043ceb8
xor edx, edx
cmp dword [ebp + 0x18], edx
mov dword [esp + 0x68], edx
mov dword [esp + 0x20], edx
jle 0x40c678
mov ecx, dword [esi]
mov eax, ecx
imul eax, edx
mov dword [esp + 0x1c], 0
test ecx, ecx
jle 0x40c66a
shl eax, 4
mov dword [esp + 0x14], eax
mov esi, dword [ebp + 0x4c]
add esi, dword [esp + 0x14]
mov ecx, esi
call fcn.00409590
push ebx
push 1
lea edx, [esp + 0x34]
push 4
push edx
mov dword [esp + 0x3c], eax
call edi
add esp, 0x10
cmp eax, 1
jne 0x40c6ab
mov edi, dword [esi]
test edi, edi
je 0x40c646
cmp dword [esp + 0x74], 0
jne 0x40c5d8
push ebx
push 2
push 8
push edi
call dword [sym.imp.MSVCR90.dll_fwrite]
add esp, 0x10
cmp eax, 2
je 0x40c63b
push 0x405980
push 2
push 0x18
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x78], 0xffffffff
call fcn.0043cf82
mov eax, 8
jmp 0x40c695
xor esi, esi
lea ebx, [esp + 0x30]
mov edi, edi
cmp dword [ebp], 2
fld dword [edi + esi*8]
mov eax, dword [edi + esi*8 + 4]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
je 0x40c603
push eax
push ecx
mov ecx, ebx
fstp dword [esp]
call fcn.0040c130
jmp 0x40c60e
push ecx
mov ecx, ebx
fstp dword [esp]
call fcn.0040c110
inc esi
add ebx, 0x18
cmp esi, 1
jle 0x40c5e0
mov eax, dword [esp + 0x70]
push eax
push 2
lea ecx, [esp + 0x38]
push 0x18
push ecx
call dword [sym.imp.MSVCR90.dll_fwrite]
add esp, 0x10
cmp eax, 2
jne 0x40c6cd
mov ebx, dword [esp + 0x70]
mov edi, dword [edi + 0x10]
test edi, edi
jne 0x40c594
mov eax, dword [esp + 0x1c]
add dword [esp + 0x14], 0x10
mov edi, dword [sym.imp.MSVCR90.dll_fwrite]
inc eax
cmp eax, dword [ebp + 0x14]
lea esi, [ebp + 0x14]
mov dword [esp + 0x1c], eax
jl 0x40c560
mov edx, dword [esp + 0x20]
inc edx
cmp edx, dword [ebp + 0x18]
mov dword [esp + 0x20], edx
jl 0x40c542
push 0x405980
push 2
push 0x18
lea edx, [esp + 0x3c]
push edx
mov dword [esp + 0x78], 0xffffffff
call fcn.0043cf82
xor eax, eax
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 8
push 0x405980
push 2
push 0x18
lea edx, [esp + 0x3c]
push edx
mov dword [esp + 0x78], 0xffffffff
call fcn.0043cf82
mov eax, 8
jmp 0x40c695
push 0x405980
push 2
push 0x18
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x78], 0xffffffff
call fcn.0043cf82
mov eax, 8
jmp 0x40c695