Function at 0x657ee0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x4168]
test eax, eax
jne 0x657fea
mov ecx, dword [0x9ea1d4]
push ebx
call fcn.00480960
mov ebx, dword [0x9ea090]
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
lea edi, [ebx + 0x14]
push eax
mov ecx, edi
call fcn.0065c2c0
mov edi, dword [edi + 4]
mov dword [esp + 0x10], eax
cmp eax, edi
je 0x657f36
mov ecx, dword [esp + 0xc]
mov edx, dword [eax + 0xc]
cmp ecx, edx
jb 0x657f36
lea eax, [esp + 0x10]
jmp 0x657f3e
mov dword [esp + 0x14], edi
lea eax, [esp + 0x14]
mov eax, dword [eax]
mov ecx, dword [ebx + 0x18]
cmp eax, ecx
pop ebx
je case.0x657ff7.4
add eax, 0x10
test eax, eax
je case.0x657ff7.4
mov eax, dword [eax + 0x38]
test eax, eax
jne 0x657f63
mov eax, 0x7e5658
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
test eax, eax
mov dword [esi + 0x4168], eax
je case.0x657ff7.4
mov eax, dword [esi + 0x40c8]
mov edx, eax
imul edx, eax
shl edx, 2
push edx
call fcn.007a2d8d
mov edx, dword [esi + 0x4168]
mov edi, dword [sym.imp.kernel32.dll_ReadFile]
add esp, 4
mov dword [esi + 0x416c], eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push 0
push eax
push 4
push ecx
push edx
call edi
mov eax, dword [esi + 0x40c8]
lea ecx, [esp + 0x14]
mov edx, eax
push 0
imul edx, eax
mov eax, dword [esi + 0x416c]
push ecx
mov ecx, dword [esi + 0x4168]
shl edx, 2
push edx
push eax
push ecx
call edi
mov eax, dword [esp + 0x20]
cmp eax, 9
ja case.0x657ff7.4
jmp dword [eax*4 + 0x6586bc]
mov edx, dword [esi + 0x416c]
mov eax, dword [esi + 0x4168]
push edx
push eax
push 0
push 0
mov ecx, esi
call fcn.006588a0
lea ecx, [esi + 0x40e8]
push ecx
push 0
push 1
mov ecx, esi
call fcn.006586f0
lea edx, [esi + 0x4118]
mov ecx, esi
push edx
push 0
push 2
call fcn.006586f0
mov eax, dword [esi + 0x416c]
mov ecx, dword [esi + 0x4168]
push eax
push ecx
push 1
push 0
mov ecx, esi
call fcn.006588a0
lea edx, [esi + 0x40f8]
mov ecx, esi
push edx
push 1
push 1
call fcn.006586f0
lea eax, [esi + 0x4128]
jmp 0x6580ce
lea ecx, [esi + 0x40e8]
push ecx
push 0
push 0
mov ecx, esi
call fcn.006586f0
lea edx, [esi + 0x4118]
mov ecx, esi
push edx
push 0
push 1
call fcn.006586f0
lea eax, [esi + 0x4148]
mov ecx, esi
push eax
push 0
push 2
call fcn.006586f0
lea ecx, [esi + 0x40f8]
push ecx
push 1
push 0
mov ecx, esi
call fcn.006586f0
lea edx, [esi + 0x4128]
mov ecx, esi
push edx
push 1
push 1
call fcn.006586f0
lea eax, [esi + 0x4158]
push eax
push 1
push 2
mov ecx, esi
call fcn.006586f0
mov ecx, dword [esi + 0x416c]
mov edx, dword [esi + 0x4168]
push ecx
push edx
push 2
push 0
mov ecx, esi
call fcn.006588a0
mov eax, dword [esi + 0x416c]
mov ecx, dword [esi + 0x4168]
push eax
push ecx
push 2
push 1
mov ecx, esi
call fcn.006588a0
mov edx, dword [esi + 0x416c]
mov eax, dword [esi + 0x4168]
push edx
push eax
push 2
push 2
mov ecx, esi
call fcn.006588a0
pop edi
pop esi
add esp, 0x14
ret 4
lea ecx, [esi + 0x4118]
push ecx
push 0
push 0
mov ecx, esi
call fcn.006586f0
lea edx, [esi + 0x4148]
mov ecx, esi
push edx
push 0
push 1
call fcn.006586f0
mov eax, dword [esi + 0x416c]
mov ecx, dword [esi + 0x4168]
push eax
push ecx
push 0
push 2
mov ecx, esi
call fcn.006588a0
lea edx, [esi + 0x4128]
mov ecx, esi
push edx
push 1
push 0
call fcn.006586f0
lea eax, [esi + 0x4158]
mov ecx, esi
push eax
push 1
push 1
call fcn.006586f0
mov ecx, dword [esi + 0x416c]
mov edx, dword [esi + 0x4168]
push ecx
push edx
push 1
push 2
mov ecx, esi
call fcn.006588a0
mov eax, dword [esi + 0x416c]
mov ecx, dword [esi + 0x4168]
push eax
push ecx
push 2
push 0
mov ecx, esi
call fcn.006588a0
mov edx, dword [esi + 0x416c]
mov eax, dword [esi + 0x4168]
push edx
push eax
push 2
push 1
mov ecx, esi
call fcn.006588a0
mov ecx, dword [esi + 0x416c]
mov edx, dword [esi + 0x4168]
push ecx
push edx
push 2
push 2
mov ecx, esi
call fcn.006588a0
pop edi
pop esi
add esp, 0x14
ret 4
lea eax, [esi + 0x4108]
mov ecx, esi
push eax
push 0
push 2
call fcn.006586f0
lea ecx, [esi + 0x4118]
push ecx
push 1
push 2
mov ecx, esi
call fcn.006586f0
lea edx, [esi + 0x4128]
mov ecx, esi
push edx
push 2
push 2
call fcn.006586f0
lea eax, [esi + 0x40d8]
mov ecx, esi
push eax
push 0
push 1
call fcn.006586f0
lea ecx, [esi + 0x40e8]
push ecx
push 1
push 1
mov ecx, esi
call fcn.006586f0
lea edx, [esi + 0x40f8]
mov ecx, esi
push edx
push 2
push 1
call fcn.006586f0
mov eax, dword [esi + 0x416c]
mov ecx, dword [esi + 0x4168]
push eax
push ecx
push 0
push 0
mov ecx, esi
call fcn.006588a0
mov edx, dword [esi + 0x416c]
mov eax, dword [esi + 0x4168]
push edx
push eax
push 1
push 0
mov ecx, esi
call fcn.006588a0
mov ecx, dword [esi + 0x416c]
mov edx, dword [esi + 0x4168]
push ecx
push edx
push 2
push 0
mov ecx, esi
call fcn.006588a0
pop edi
pop esi
add esp, 0x14
ret 4
mov eax, dword [esi + 0x416c]
mov ecx, dword [esi + 0x4168]
push eax
push ecx
push 0
push 0
mov ecx, esi
call fcn.006588a0
mov edx, dword [esi + 0x416c]
mov eax, dword [esi + 0x4168]
push edx
push eax
push 0
push 1
mov ecx, esi
call fcn.006588a0
mov ecx, dword [esi + 0x416c]
mov edx, dword [esi + 0x4168]
push ecx
push edx
push 0
push 2
mov ecx, esi
call fcn.006588a0
mov eax, dword [esi + 0x416c]
mov ecx, dword [esi + 0x4168]
push eax
push ecx
push 1
push 0
mov ecx, esi
call fcn.006588a0
mov edx, dword [esi + 0x416c]
mov eax, dword [esi + 0x4168]
push edx
push eax
push 1
push 1
mov ecx, esi
call fcn.006588a0
mov ecx, dword [esi + 0x416c]
mov edx, dword [esi + 0x4168]
push ecx
push edx
push 1
push 2
mov ecx, esi
call fcn.006588a0
mov eax, dword [esi + 0x416c]
mov ecx, dword [esi + 0x4168]
push eax
push ecx
push 2
push 0
mov ecx, esi
call fcn.006588a0
mov edx, dword [esi + 0x416c]
mov eax, dword [esi + 0x4168]
push edx
push eax
push 2
push 1
mov ecx, esi
call fcn.006588a0
mov ecx, dword [esi + 0x416c]
mov edx, dword [esi + 0x4168]
push ecx
push edx
push 2
push 2
mov ecx, esi
call fcn.006588a0
pop edi
pop esi
add esp, 0x14
ret 4
lea eax, [esi + 0x4108]
mov ecx, esi
push eax
push 0
push 0
call fcn.006586f0
lea ecx, [esi + 0x4118]
push ecx
push 1
push 0
mov ecx, esi
call fcn.006586f0
lea edx, [esi + 0x4128]
mov ecx, esi
push edx
push 2
push 0
call fcn.006586f0
lea eax, [esi + 0x4138]
mov ecx, esi
push eax
push 0
push 1
call fcn.006586f0
lea ecx, [esi + 0x4148]
push ecx
push 1
push 1
mov ecx, esi
call fcn.006586f0
lea edx, [esi + 0x4158]
mov ecx, esi
push edx
push 2
push 1
call fcn.006586f0
mov eax, dword [esi + 0x416c]
mov ecx, dword [esi + 0x4168]
push eax
push ecx
push 0
push 2
mov ecx, esi
call fcn.006588a0
mov edx, dword [esi + 0x416c]
mov eax, dword [esi + 0x4168]
push edx
push eax
push 1
push 2
mov ecx, esi
call fcn.006588a0
mov ecx, dword [esi + 0x416c]
mov edx, dword [esi + 0x4168]
push ecx
push edx
push 2
push 2
mov ecx, esi
call fcn.006588a0
pop edi
pop esi
add esp, 0x14
ret 4
lea eax, [esi + 0x4118]
mov ecx, esi
push eax
push 2
push 2
call fcn.006586f0
lea ecx, [esi + 0x40e8]
push ecx
push 2
push 1
mov ecx, esi
call fcn.006586f0
mov edx, dword [esi + 0x416c]
mov eax, dword [esi + 0x4168]
push edx
push eax
push 2
push 0
mov ecx, esi
call fcn.006588a0
lea ecx, [esi + 0x4108]
push ecx
push 1
push 2
mov ecx, esi
call fcn.006586f0
lea edx, [esi + 0x40d8]
mov ecx, esi
push edx
push 1
push 1
call fcn.006586f0
mov eax, dword [esi + 0x416c]
mov ecx, dword [esi + 0x4168]
push eax
push ecx
push 1
push 0
mov ecx, esi
call fcn.006588a0
mov edx, dword [esi + 0x416c]
mov eax, dword [esi + 0x4168]
push edx
push eax
push 0
push 0
mov ecx, esi
call fcn.006588a0
mov ecx, dword [esi + 0x416c]
mov edx, dword [esi + 0x4168]
push ecx
push edx
push 0
push 1
mov ecx, esi
call fcn.006588a0
mov eax, dword [esi + 0x416c]
mov ecx, dword [esi + 0x4168]
push eax
push ecx
push 0
push 2
mov ecx, esi
call fcn.006588a0
pop edi
pop esi
add esp, 0x14
ret 4
lea edx, [esi + 0x40e8]
mov ecx, esi
push edx
push 2
push 0
call fcn.006586f0
lea eax, [esi + 0x4118]
mov ecx, esi
push eax
push 2
push 1
call fcn.006586f0
lea ecx, [esi + 0x4148]
push ecx
push 2
push 2
mov ecx, esi
call fcn.006586f0
lea edx, [esi + 0x40d8]
mov ecx, esi
push edx
push 1
push 0
call fcn.006586f0
lea eax, [esi + 0x4108]
mov ecx, esi
push eax
push 1
push 1
call fcn.006586f0
lea ecx, [esi + 0x4138]
push ecx
push 1
push 2
mov ecx, esi
call fcn.006586f0
mov edx, dword [esi + 0x416c]
mov eax, dword [esi + 0x4168]
push edx
push eax
push 0
push 0
mov ecx, esi
call fcn.006588a0
mov ecx, dword [esi + 0x416c]
mov edx, dword [esi + 0x4168]
push ecx
push edx
push 0
push 1
mov ecx, esi
call fcn.006588a0
mov eax, dword [esi + 0x416c]
mov ecx, dword [esi + 0x4168]
push eax
push ecx
push 0
push 2
mov ecx, esi
call fcn.006588a0
pop edi
pop esi
add esp, 0x14
ret 4
lea edx, [esi + 0x4118]
mov ecx, esi
push edx
push 2
push 0
call fcn.006586f0
lea eax, [esi + 0x4148]
mov ecx, esi
push eax
push 2
push 1
call fcn.006586f0
mov ecx, dword [esi + 0x416c]
mov edx, dword [esi + 0x4168]
push ecx
push edx
push 2
push 2
mov ecx, esi
call fcn.006588a0
lea eax, [esi + 0x4108]
mov ecx, esi
push eax
push 1
push 0
call fcn.006586f0
lea ecx, [esi + 0x4138]
push ecx
push 1
push 1
mov ecx, esi
call fcn.006586f0
mov edx, dword [esi + 0x416c]
mov eax, dword [esi + 0x4168]
push edx
push eax
push 1
push 2
mov ecx, esi
call fcn.006588a0
mov ecx, dword [esi + 0x416c]
mov edx, dword [esi + 0x4168]
push ecx
push edx
push 0
push 0
mov ecx, esi
call fcn.006588a0
mov eax, dword [esi + 0x416c]
mov ecx, dword [esi + 0x4168]
push eax
push ecx
push 0
push 1
mov ecx, esi
call fcn.006588a0
mov edx, dword [esi + 0x416c]
mov eax, dword [esi + 0x4168]
push edx
push eax
push 0
push 2
mov ecx, esi
call fcn.006588a0
pop edi
pop esi
add esp, 0x14
ret 4