Function at 0x410900
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x434b17
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x459f34]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
xor esi, esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], esi
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov edi, dword [esp + 0x48]
push esi
push esi
push 3
push edi
mov dword [esp + 0x50], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [esp + 0x50]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov esi, dword [esp + 0x50]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esi]
mov ecx, eax
shl ecx, 4
add ecx, eax
push 4
lea edx, [ebx + ecx*4]
push edx
push edi
call ebp
push 0
lea eax, [esp + 0x18]
push eax
mov eax, dword [esi]
mov ecx, eax
shl ecx, 4
add ecx, eax
push 0x33
lea edx, [ebx + ecx*4 + 4]
push edx
push edi
call ebp
push 0
lea eax, [esp + 0x18]
push eax
mov eax, dword [esi]
mov ecx, eax
shl ecx, 4
add ecx, eax
push 7
lea edx, [ebx + ecx*4 + 0x37]
push edx
push edi
call ebp
push 0
lea eax, [esp + 0x18]
push eax
mov eax, dword [esi]
mov ecx, eax
shl ecx, 4
add ecx, eax
push 4
lea edx, [ebx + ecx*4 + 0x40]
push edx
push edi
call ebp
test eax, eax
je 0x410ce7
cmp dword [esp + 0x14], 0
je 0x410ce7
mov eax, dword [esi]
mov ecx, eax
shl ecx, 4
add ecx, eax
lea edx, [ebx + ecx*4 + 4]
push edx
lea ecx, [esp + 0x28]
call dword [sym.imp.mfc90.dll_Ordinal_310]
push 0x438d18
mov ecx, eax
mov byte [esp + 0x44], 1
call dword [sym.imp.mfc90.dll_Ordinal_1603]
test eax, eax
lea ecx, [esp + 0x24]
sete byte [esp + 0x4c]
mov byte [esp + 0x40], 0
call dword [sym.imp.mfc90.dll_Ordinal_601]
cmp byte [esp + 0x4c], 0
jne 0x410d0a
mov eax, dword [esi]
mov ecx, eax
shl ecx, 4
add ecx, eax
mov dword [ebx + ecx*4], eax
mov eax, dword [esi]
mov edx, eax
shl edx, 4
add edx, eax
cmp dword [ebx + edx*4 + 0x40], 0
mov dword [esp + 0x4c], 0
jbe 0x410c76
xor ebx, ebx
mov ecx, dword [esi]
mov edx, dword [esp + 0x54]
push 0
lea eax, [esp + 0x18]
push eax
mov eax, dword [edx + ecx*4]
push 4
add eax, ebx
push eax
push edi
call ebp
mov edx, dword [esi]
mov eax, dword [esp + 0x54]
push 0
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [eax + edx*4]
push 4
lea edx, [ecx + ebx + 4]
push edx
push edi
call ebp
mov ecx, dword [esi]
mov edx, dword [esp + 0x54]
push 0
lea eax, [esp + 0x18]
push eax
mov eax, dword [edx + ecx*4]
push 0x33
lea ecx, [eax + ebx + 8]
push ecx
push edi
call ebp
mov eax, dword [esi]
mov ecx, dword [esp + 0x54]
push 0
lea edx, [esp + 0x18]
push edx
mov edx, dword [ecx + eax*4]
push 0x33
lea eax, [edx + ebx + 0x3b]
push eax
push edi
call ebp
mov edx, dword [esi]
mov eax, dword [esp + 0x54]
push 0
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [eax + edx*4]
push 6
lea edx, [ecx + ebx + 0x6e]
push edx
push edi
call ebp
mov ecx, dword [esi]
mov edx, dword [esp + 0x54]
push 0
lea eax, [esp + 0x18]
push eax
mov eax, dword [edx + ecx*4]
push 4
lea ecx, [eax + ebx + 0x74]
push ecx
push edi
call ebp
mov eax, dword [esi]
mov ecx, dword [esp + 0x54]
push 0
lea edx, [esp + 0x18]
push edx
mov edx, dword [ecx + eax*4]
push 4
lea eax, [edx + ebx + 0x78]
push eax
push edi
call ebp
push 0
lea ecx, [esp + 0x18]
push ecx
push 4
lea edx, [esp + 0x2c]
push edx
push edi
call ebp
mov eax, dword [esi]
mov ecx, dword [esp + 0x54]
mov edx, dword [ecx + eax*4]
mov eax, dword [edx + ebx + 0x74]
test eax, eax
je 0x410b89
cmp eax, 1
je 0x410b89
cmp eax, 2
je 0x410b89
cmp eax, 6
je 0x410b5f
cmp eax, 7
je 0x410b5f
cmp eax, 8
je 0x410b5f
mov eax, dword [esp + 0x20]
push 0
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.00410170
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x44], 4
call dword [sym.imp.mfc90.dll_Ordinal_817]
lea ecx, [esp + 0x28]
jmp 0x410bb1
mov edx, dword [esp + 0x20]
push 1
push edx
lea eax, [esp + 0x34]
push eax
call fcn.00410170
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x44], 3
call dword [sym.imp.mfc90.dll_Ordinal_817]
lea ecx, [esp + 0x2c]
jmp 0x410bb1
mov ecx, dword [esp + 0x20]
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 + 0x44], 2
call dword [sym.imp.mfc90.dll_Ordinal_817]
lea ecx, [esp + 0x30]
mov byte [esp + 0x40], 0
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_910]
mov ecx, dword [esp + 0x54]
push eax
mov eax, dword [esi]
mov edx, dword [ecx + eax*4]
lea eax, [edx + ebx + 0x7c]
push 9
push eax
call dword [sym.imp.MSVCR90.dll_sprintf_s]
mov edx, dword [esi]
mov eax, dword [esp + 0x60]
add esp, 0xc
push 0
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [eax + edx*4]
push 7
lea edx, [ecx + ebx + 0x86]
push edx
push edi
call ebp
test eax, eax
je 0x410c30
mov eax, dword [esi]
mov ecx, dword [esp + 0x54]
mov edx, dword [ecx + eax*4]
lea eax, [edx + ebx + 8]
push eax
lea ecx, [esp + 0x38]
call dword [sym.imp.mfc90.dll_Ordinal_310]
or dword [esp + 0x1c], 1
push 0x438d18
mov ecx, eax
mov byte [esp + 0x44], 5
call dword [sym.imp.mfc90.dll_Ordinal_1603]
test byte [esp + 0x1c], 1
mov dword [esp + 0x40], 0
je 0x410c4e
and dword [esp + 0x1c], 0xfffffffe
lea ecx, [esp + 0x34]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, dword [esi]
mov ecx, dword [esp + 0x4c]
mov edx, eax
shl edx, 4
add edx, eax
mov eax, dword [esp + 0x50]
inc ecx
add ebx, 0x8f
mov dword [esp + 0x4c], ecx
cmp ecx, dword [eax + edx*4 + 0x40]
jb 0x410a46
mov ebx, eax
inc dword [esi]
mov eax, dword [esi]
push 0
mov edx, eax
lea ecx, [esp + 0x18]
push ecx
shl edx, 4
add edx, eax
push 4
lea eax, [ebx + edx*4]
push eax
push edi
call ebp
mov eax, dword [esi]
push 0
mov edx, eax
lea ecx, [esp + 0x18]
push ecx
shl edx, 4
add edx, eax
push 0x33
lea eax, [ebx + edx*4 + 4]
push eax
push edi
call ebp
mov eax, dword [esi]
push 0
mov edx, eax
lea ecx, [esp + 0x18]
push ecx
shl edx, 4
add edx, eax
push 7
lea eax, [ebx + edx*4 + 0x37]
push eax
push edi
call ebp
mov eax, dword [esi]
push 0
mov edx, eax
lea ecx, [esp + 0x18]
push ecx
shl edx, 4
add edx, eax
push 4
lea eax, [ebx + edx*4 + 0x40]
push eax
push edi
call ebp
test eax, eax
jne 0x4109c6
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
push edi
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_601]
xor eax, eax
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret