Function at 0x410540
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x434a9c
mov eax, dword fs:[0]
push eax
sub esp, 0x90c
mov eax, dword [0x459f34]
xor eax, esp
mov dword [esp + 0x908], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x459f34]
xor eax, esp
push eax
lea eax, [esp + 0x920]
mov dword fs:[0], eax
mov edi, dword [esp + 0x930]
mov ebp, dword [esp + 0x938]
mov esi, dword [esp + 0x934]
mov ebx, dword [esp + 0x93c]
push 0
push 0
push 0
push edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x3c], ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x8df
lea eax, [esp + 0x40]
push 0
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0
lea ecx, [esp + 0x24]
push ecx
push 0x8df
lea edx, [esp + 0x48]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4108b5
cmp dword [esp + 0x20], 0
je 0x4108b5
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x3c]
call dword [sym.imp.mfc90.dll_Ordinal_310]
push 0x438d18
mov ecx, eax
mov dword [esp + 0x92c], 0
call dword [sym.imp.mfc90.dll_Ordinal_1603]
test eax, eax
lea ecx, [esp + 0x38]
sete byte [esp + 0x17]
mov dword [esp + 0x928], 0xffffffff
call dword [sym.imp.mfc90.dll_Ordinal_601]
cmp byte [esp + 0x17], 0
jne 0x4108e2
mov eax, dword [esi]
mov edx, dword [esp + 0x3c]
mov ecx, eax
shl ecx, 4
add ecx, eax
mov dword [ebp + ecx*4], edx
mov eax, dword [esi]
mov edx, dword [esp + 0x40]
mov ecx, eax
shl ecx, 4
add ecx, eax
mov dword [ebp + ecx*4 + 4], edx
lea eax, [ebp + ecx*4 + 4]
mov ecx, dword [esp + 0x44]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x48]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x4c]
mov dword [eax + 0xc], ecx
mov eax, dword [esi]
mov ecx, dword [esp + 0x50]
mov edx, eax
shl edx, 4
add edx, eax
lea eax, [ebp + edx*4 + 0x37]
mov dword [eax], ecx
mov dx, word [esp + 0x54]
mov word [eax + 4], dx
mov cl, byte [esp + 0x56]
mov byte [eax + 6], cl
mov eax, dword [esi]
mov edx, eax
shl edx, 4
add edx, eax
mov eax, dword [esp + 0x57]
mov dword [ebp + edx*4 + 0x40], eax
cmp dword [esp + 0x57], 0
mov dword [esp + 0x1c], 0
jbe 0x410893
xor edi, edi
lea ebp, [esp + 0x5f]
mov ecx, dword [esi]
mov edx, dword [ebx + ecx*4]
mov eax, dword [ebp - 4]
mov dword [edi + edx], eax
mov ecx, dword [esi]
mov edx, dword [ebx + ecx*4]
mov eax, dword [ebp]
mov dword [edx + edi + 4], eax
mov ecx, dword [esi]
mov edx, dword [ebx + ecx*4]
mov ecx, dword [ebp + 4]
mov dword [edx + edi + 8], ecx
lea eax, [edx + edi + 8]
mov edx, dword [ebp + 8]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 0xc]
mov dword [eax + 8], ecx
mov edx, dword [ebp + 0x10]
mov dword [eax + 0xc], edx
mov eax, dword [esi]
mov ecx, dword [ebx + eax*4]
mov edx, dword [ebp + 0x14]
mov dword [ecx + edi + 0x3b], edx
lea eax, [ecx + edi + 0x3b]
mov ecx, dword [ebp + 0x18]
mov dword [eax + 4], ecx
mov edx, dword [ebp + 0x1c]
mov dword [eax + 8], edx
mov ecx, dword [ebp + 0x20]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp + 0x24]
mov dword [eax + 0x10], edx
mov cl, byte [ebp + 0x28]
mov byte [eax + 0x14], cl
mov edx, dword [esi]
mov eax, dword [ebx + edx*4]
mov ecx, dword [ebp + 0x29]
mov dword [eax + edi + 0x6e], ecx
mov dx, word [ebp + 0x2d]
lea eax, [eax + edi + 0x6e]
mov word [eax + 4], dx
mov eax, dword [esi]
mov ecx, dword [ebx + eax*4]
mov edx, dword [ebp + 0x2f]
mov dword [ecx + edi + 0x74], edx
mov eax, dword [esi]
mov ecx, dword [ebx + eax*4]
mov edx, dword [ebp + 0x33]
mov dword [ecx + edi + 0x78], edx
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov eax, dword [esi]
mov ecx, dword [ebx + eax*4]
mov eax, dword [ecx + edi + 0x74]
mov dword [esp + 0x928], 1
test eax, eax
je 0x4107eb
cmp eax, 1
je 0x4107eb
cmp eax, 2
je 0x4107eb
cmp eax, 6
je 0x4107bf
cmp eax, 7
je 0x4107bf
cmp eax, 8
je 0x4107bf
mov edx, dword [ebp + 0x37]
push 0
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.00410170
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x92c], 4
call dword [sym.imp.mfc90.dll_Ordinal_817]
lea ecx, [esp + 0x24]
jmp 0x410815
mov ecx, dword [ebp + 0x37]
push 1
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.00410170
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x92c], 3
call dword [sym.imp.mfc90.dll_Ordinal_817]
lea ecx, [esp + 0x30]
jmp 0x410815
mov eax, dword [ebp + 0x37]
push 1
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.00410170
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x92c], 2
call dword [sym.imp.mfc90.dll_Ordinal_817]
lea ecx, [esp + 0x28]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_910]
mov edx, dword [esi]
push eax
mov eax, dword [ebx + edx*4]
lea ecx, [eax + edi + 0x7c]
push 9
push ecx
call dword [sym.imp.MSVCR90.dll_sprintf_s]
mov edx, dword [esi]
mov eax, dword [ebx + edx*4]
mov ecx, dword [ebp + 0x3b]
lea eax, [eax + edi + 0x86]
mov dword [eax], ecx
mov dx, word [ebp + 0x3f]
mov word [eax + 4], dx
mov cl, byte [ebp + 0x41]
mov byte [eax + 6], cl
add esp, 0xc
lea ecx, [esp + 0x18]
mov dword [esp + 0x928], 0xffffffff
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, dword [esp + 0x1c]
inc eax
add ebp, 0x46
add edi, 0x8f
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x57]
jb 0x4106c1
mov ebp, dword [esp + 0x2c]
mov edi, dword [esp + 0x34]
inc dword [esi]
push 0
lea edx, [esp + 0x24]
push edx
push 0x8df
lea eax, [esp + 0x48]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4105e0
mov eax, 1
mov ecx, dword [esp + 0x920]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x908]
xor ecx, esp
call fcn.00429cfe
add esp, 0x918
ret
push edi
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4108ba