Function at 0x4594d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ccc45
mov eax, dword fs:[0]
push eax
mov eax, 0x10ac
call fcn.004a22e0
mov eax, dword [0x52a0b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
mov dword [ebp - 0x10ac], ebx
mov dword [ebp - 0x10b4], 0
mov dword [ebp - 0x10b8], ebx
mov dword [ebp - 0x1050], 0x4e7a18
mov dword [ebp - 0x1028], 0x4e86a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1024], eax
mov dword [ebp - 4], 1
xor eax, eax
mov dword [ebp - 0x103c], 0
mov dword [ebp - 0x1038], 0
mov dword [ebp - 0x1038], 7
mov dword [ebp - 0x103c], 0
mov word [ebp - 0x104c], ax
mov byte [ebp - 4], 2
mov dword [ebp - 0x1034], eax
mov dword [ebp - 0x1030], eax
mov dword [ebp - 0x102c], eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1028]
mov eax, dword [eax + 4]
push dword [ebp + eax - 0x1028]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 6
or esi, 0xffffffff
mov dword [ebp - 0x10b0], esi
mov byte [ebp - 4], 7
add edi, 4
cmp dword [edi + 0x14], 8
jb 0x4595c3
mov edi, dword [edi]
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push SysReAllocString
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4596b9
lea eax, [ebp - 0x10a8]
mov esi, edi
push eax
mov dword [ebp - 0x10b0], esi
call fcn.0049ed8d
add esp, 4
mov edi, edi
push 0
lea eax, [ebp - 0x10ac]
push eax
push 0x1000
lea eax, [ebp - 0x1020]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x459645
push dword [ebp - 0x10ac]
lea eax, [ebp - 0x1020]
push eax
lea eax, [ebp - 0x10a8]
push eax
call fcn.0049f488
add esp, 0xc
cmp dword [ebp - 0x10ac], 0
ja 0x459600
lea eax, [ebp - 0x10a8]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0049ed0e
movzx eax, byte [ebp - 0x11]
push eax
movzx eax, byte [ebp - 0x12]
push eax
movzx eax, byte [ebp - 0x13]
push eax
movzx eax, byte [ebp - 0x14]
push eax
movzx eax, byte [ebp - 0x15]
push eax
movzx eax, byte [ebp - 0x16]
push eax
movzx eax, byte [ebp - 0x17]
push eax
movzx eax, byte [ebp - 0x18]
push eax
movzx eax, byte [ebp - 0x19]
push eax
movzx eax, byte [ebp - 0x1a]
push eax
movzx eax, byte [ebp - 0x1b]
push eax
movzx eax, byte [ebp - 0x1c]
push eax
movzx eax, byte [ebp - 0x1d]
push eax
movzx eax, byte [ebp - 0x1e]
push eax
movzx eax, byte [ebp - 0x1f]
push eax
movzx eax, byte [ebp - 0x20]
push eax
lea eax, [ebp - 0x1050]
push str._02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X
push eax
call fcn.0040eb60
add esp, 0x50
push 0
lea eax, [ebp - 0x1050]
mov dword [ebx], 0x4e7a18
push eax
mov ecx, ebx
mov dword [ebx + 0x28], 0x4e86a8
call fcn.00406fd0
mov byte [ebp - 4], 7
mov dword [ebp - 0x10b4], 1
mov byte [ebp - 4], 6
cmp esi, 0xffffffff
je 0x459703
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x459703
push esi
call eax
mov dword [ebp - 0x10b0], 0xffffffff
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1050]
call fcn.00404c20
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a0eca
mov esp, ebp
pop ebp
ret