Function at 0x583ee0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
sub esp, 0x1c
push ecx
push edi
lea edi, [esp + 8]
mov eax, 0xcccccccc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop edi
pop ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], 0
push 0
push pe_nt_image_headers32
push 3
push 0
push 0
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x583f4f
mov eax, 0
lea esp, [ebp - 8]
pop esi
pop ebx
pop ebp
ret
push 0x230
call fcn.0058d4e0
pop ecx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x583f78
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0
lea esp, [ebp - 8]
pop esi
pop ebx
pop ebp
ret
push dword [ebp - 0x18]
call fcn.00584360
pop ecx
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x20c], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x20c], 0xffffffff
jne 0x583fb4
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
call fcn.0058d510
pop ecx
mov eax, 0
lea esp, [ebp - 8]
pop esi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x20c]
add eax, 0xffffffff
shl eax, 5
add eax, 0x230
push eax
push dword [ebp - 0x10]
call fcn.0058d540
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x583ffa
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
call fcn.0058d510
pop ecx
mov eax, 0
lea esp, [ebp - 8]
pop esi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
push dword [ebp + 8]
mov eax, dword [ebp - 0x10]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x639a94
mov eax, dword [ebp - 0x10]
add eax, 0x108
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x20c]
shl eax, 4
push eax
call fcn.0058d4e0
pop ecx
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x58405e
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
call fcn.0058d510
pop ecx
mov eax, 0
lea esp, [ebp - 8]
pop esi
pop ebx
pop ebp
ret
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x20c]
shl eax, 4
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 0
jne 0x5840a0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
call fcn.0058d510
pop ecx
mov eax, 0
lea esp, [ebp - 8]
pop esi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x20c]
shl edx, 4
cmp dword [ebp - 0xc], edx
je 0x5840cf
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
call fcn.0058d510
pop ecx
mov eax, 0
lea esp, [ebp - 8]
pop esi
pop ebx
pop ebp
ret
mov dword [ebp - 0x20], 0
jmp 0x584279
mov edx, dword [ebp - 0x20]
lea edx, [edx + edx]
mov eax, dword [ebp - 0x24]
push dword [eax + edx*8 + 8]
call fcn.0058d4e0
pop ecx
mov ebx, dword [ebp - 0x20]
lea ebx, [ebx*4]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + ebx*8 + 0x21c], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax + ebx*8 + 0x21c], 0
jne 0x584136
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
call fcn.0058d510
pop ecx
push dword [ebp - 0x24]
call fcn.0058d510
pop ecx
mov eax, 0
lea esp, [ebp - 8]
pop esi
pop ebx
pop ebp
ret
mov esi, dword [ebp - 0x20]
lea esi, [esi + esi]
mov ebx, dword [ebp - 0x20]
lea ebx, [ebx*4]
mov eax, dword [ebp - 0x24]
mov esi, dword [eax + esi*8 + 8]
mov eax, dword [ebp - 0x10]
mov dword [eax + ebx*8 + 0x220], esi
push 0
push 0
mov edx, dword [ebp - 0x20]
lea edx, [edx + edx]
mov eax, dword [ebp - 0x24]
push dword [eax + edx*8 + 0xc]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x58419d
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
call fcn.0058d510
pop ecx
push dword [ebp - 0x24]
call fcn.0058d510
pop ecx
mov eax, 0
lea esp, [ebp - 8]
pop esi
pop ebx
pop ebp
ret
push 0
lea eax, [ebp - 0xc]
push eax
mov edx, dword [ebp - 0x20]
lea edx, [edx + edx]
mov eax, dword [ebp - 0x24]
push dword [eax + edx*8 + 8]
mov edx, dword [ebp - 0x20]
lea edx, [edx*4]
mov eax, dword [ebp - 0x10]
push dword [eax + edx*8 + 0x21c]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 0
jne 0x5841f9
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
call fcn.0058d510
pop ecx
push dword [ebp - 0x24]
call fcn.0058d510
pop ecx
mov eax, 0
lea esp, [ebp - 8]
pop esi
pop ebx
pop ebp
ret
mov ebx, dword [ebp - 0x20]
lea ebx, [ebx + ebx]
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + ebx*8 + 8]
cmp esi, edx
je 0x584234
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x24]
call fcn.0058d510
pop ecx
push dword [ebp - 0x10]
call fcn.0058d510
pop ecx
mov eax, 0
lea esp, [ebp - 8]
pop esi
pop ebx
pop ebp
ret
mov edx, dword [ebp - 0x20]
shl edx, 5
add edx, dword [ebp - 0x10]
add edx, 0x210
push edx
call fcn.005842b0
pop ecx
cmp eax, 0
jne 0x584276
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x24]
call fcn.0058d510
pop ecx
push dword [ebp - 0x10]
call fcn.0058d510
pop ecx
mov eax, 0
lea esp, [ebp - 8]
pop esi
pop ebx
pop ebp
ret
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x20c]
cmp dword [ebp - 0x20], ecx
jb 0x5840db
push dword [ebp - 0x24]
call fcn.0058d510
pop ecx
push dword [ebp - 0x1c]
call fcn.0058d510
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
lea esp, [ebp - 8]
pop esi
pop ebx
pop ebp
ret