Function at 0x4e5930
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53436d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x566090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x10]
cmp eax, 0xffffffff
je 0x4e597e
cmp byte [edi + 0x14], 0
jne 0x4e597e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4e5b4b
mov dword [edi + 0x10], 0xffffffff
mov eax, dword [edi + 0x1c]
xorps xmm0, xmm0
mov ebx, dword [ebp + 8]
movlpd qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0xffffffff
test eax, eax
je 0x4e59d0
mov edx, dword [edi + 0x18]
mov ecx, ebx
push eax
call fcn.004ce500
add esp, 4
test eax, eax
jne 0x4e5b50
mov edx, dword [edi + 0x18]
or ecx, 0xffffffff
push 0x56b380
push dword [edi + 0x1c]
call dword [0x56b16c]
mov esi, dword [edi + 0x1c]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
jmp 0x4e59d9
mov eax, dword [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x14], eax
cmp byte [edi + 0x2c], 0
mov dword [ebp - 0x10], esi
je 0x4e5af5
push 0
push 0x80
push 3
push 0
push 1
mov dword [ebp - 4], 0
push SysReAllocString
push dword [edi + 0x20]
mov byte [ebp - 0x28], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x2c], eax
cmp eax, 0xffffffff
je 0x4e5b20
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [edi + 0x34]
ja 0x4e5ae8
jb 0x4e5a30
cmp esi, dword [edi + 0x30]
jae 0x4e5ae8
nop
push 0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push ecx
push 0x100000
push dword [edi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4e5b20
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4e5ae2
mov edx, dword [edi + 0x18]
mov esi, eax
mov dword [ebp - 0x20], edx
mov eax, dword [ebx]
mov ecx, dword [eax + 0xc]
lea eax, [ebp - 0x24]
push eax
mov eax, SysReAllocString
cmp esi, eax
cmovb eax, esi
push eax
push edx
push ebx
call ecx
mov edx, dword [ebp - 0x20]
mov ebx, eax
mov eax, dword [ebp - 0x24]
add edx, eax
sub esi, eax
mov dword [ebp - 0x20], edx
test ebx, ebx
jne 0x4e5b25
test eax, eax
je 0x4e5b20
mov ebx, dword [ebp + 8]
test esi, esi
jne 0x4e5a67
mov esi, dword [ebp - 0x1c]
mov edx, dword [edi + 0x18]
mov ecx, dword [ebp - 0x18]
push 0x56b380
push esi
call dword [0x56b16c]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
add eax, esi
mov dword [ebp - 0x10], eax
adc ecx, 0
mov dword [ebp - 0x14], ecx
cmp ecx, dword [edi + 0x34]
ja 0x4e5ae2
jb 0x4e5ada
cmp eax, dword [edi + 0x30]
jae 0x4e5ae2
mov eax, dword [ebp - 0x2c]
jmp 0x4e5a30
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x2c]
cmp eax, 0xffffffff
je 0x4e5af5
push eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
mov eax, dword [ebp - 0x18]
cmp dword [edi + 0x38], eax
jne 0x4e5b4b
cmp esi, dword [edi + 0x30]
jne 0x4e5b4b
mov eax, dword [ebp - 0x14]
cmp eax, dword [edi + 0x34]
jne 0x4e5b4b
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, 0x80004005
mov eax, dword [ebp - 0x2c]
cmp eax, 0xffffffff
je 0x4e5b35
push eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4