Function at 0x4e5aa0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52a329
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x56617c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov eax, dword [ebp + 8]
lea ebx, [edi + 0x20]
push ebx
push 0x52f6f4
push 3
push 0
push 0x549fd0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x4e5de0
mov eax, dword [ebx]
lea edx, [ebp - 0x2c]
push edx
push 0x52f7d4
push eax
mov ecx, dword [eax]
call dword [ecx]
mov dword [ebp - 0x18], eax
test eax, eax
js 0x4e5e2a
mov esi, dword [edi + 0x44]
test esi, esi
jne 0x4e5b6c
mov dword [ebp - 0x1c], esi
call fcn.004cc620
lea esi, [eax + 0x48]
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.00431480
mov ecx, dword [ebp - 0x64]
cmp byte [ecx + 0xd], 0
jne 0x4e5b6a
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ecx + 0x10]
jl 0x4e5b6a
cmp ecx, dword [esi]
je 0x4e5b6a
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.00494e50
mov esi, dword [eax]
jmp 0x4e5b6c
xor esi, esi
push 0x52d978
push 0x1c8
call fcn.004feae3
add esp, 8
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x4e5b95
push esi
mov ecx, eax
call fcn.004e6b80
mov esi, eax
jmp 0x4e5b97
xor esi, esi
mov byte [ebp - 4], 0
lea eax, [esi + 0xc]
mov ecx, dword [ebp - 0x2c]
mov dword [edi + 0x34], esi
neg esi
push 0
sbb esi, esi
mov edx, dword [ecx]
and esi, eax
push esi
push ecx
call dword [edx + 0xc]
mov dword [ebp - 0x18], eax
test eax, eax
js 0x4e5e3b
mov eax, dword [edi + 0x34]
add eax, 0xc
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
mov eax, dword [edi + 0x90]
mov esi, dword [edi + 0x38]
mov dword [ebp - 0x3c], eax
mov eax, dword [edi + 0x94]
mov dword [ebp - 0x40], eax
mov eax, dword [esi + 0x4b424]
mov dword [esi + 0x4b430], 0
mov dword [esi + 0x4b434], 0
mov dword [esi + 0x4b438], 0
test eax, eax
je 0x4e5c0e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
push 0
mov dword [esi + 0x4b428], eax
lea eax, [ebp - 0x1c]
push eax
push 4
lea eax, [ebp - 0x28]
mov dword [esi + 0x4b424], ecx
push eax
push ecx
mov dword [esi + 0x4b42c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x1c], 4
jne 0x4e5ca8
cmp dword [ebp - 0x28], 0x31445356
jne 0x4e5c89
push 0
lea eax, [ebp - 0x1c]
push eax
push 4
lea eax, [ebp - 0x24]
push eax
push dword [esi + 0x4b424]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x1c], 4
jne 0x4e5ca8
mov eax, dword [ebp - 0x24]
add eax, 8
sub dword [esi + 0x4b428], eax
mov dword [ebp - 0x24], eax
sbb dword [esi + 0x4b42c], 0
add eax, dword [ebp - 0x40]
mov dword [esi + 0x4b438], eax
push 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
push dword [esi + 0x4b438]
push dword [esi + 0x4b424]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x52d978
push 0x1e8
call fcn.004feae3
add esp, 8
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x4e5cd5
lea ecx, [ebp - 0x18]
push ecx
push dword [edi + 0x38]
mov ecx, eax
call fcn.004e4cd0
jmp 0x4e5cd7
xor eax, eax
mov byte [ebp - 4], 0
cmp dword [ebp - 0x18], 0
mov dword [edi + 0x3c], eax
jl 0x4e5ea1
test eax, eax
je 0x4e5ea1
mov ecx, dword [eax + 0xc]
add eax, 0xc
push eax
call dword [ecx + 4]
mov esi, dword [edi + 0x3c]
mov ecx, dword [ebp - 0x2c]
push 0
lea eax, [esi + 0xc]
neg esi
mov edx, dword [ecx]
sbb esi, esi
and esi, eax
push esi
push ecx
call dword [edx + 0xc]
mov dword [ebp - 0x18], eax
test eax, eax
js 0x4e5e4c
mov ecx, dword [edi + 0x3c]
push 0
mov eax, dword [ecx]
call dword [eax + 0x1c]
test eax, eax
je 0x4e5d30
lea edx, [eax + 0xc]
jmp 0x4e5d32
xor edx, edx
mov eax, dword [ebp - 0x2c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov dword [ebp - 0x18], eax
test eax, eax
js 0x4e5e5d
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x4e5d5b
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0x2c], 0
mov ecx, dword [ebx]
lea eax, [edi + 0x30]
push eax
push 0x52f6b4
push ecx
mov edx, dword [ecx]
call dword [edx]
mov dword [ebp - 0x18], eax
test eax, eax
js 0x4e5e6e
mov ecx, dword [ebx]
lea eax, [edi + 0x28]
push eax
push 0x52f694
push ecx
mov edx, dword [ecx]
call dword [edx]
mov dword [ebp - 0x18], eax
test eax, eax
js 0x4e5e7f
mov ecx, dword [ebx]
lea eax, [edi + 0x24]
push eax
push 0x52f684
push ecx
mov edx, dword [ecx]
call dword [edx]
mov dword [ebp - 0x18], eax
test eax, eax
js 0x4e5e90
mov ecx, dword [ebx]
lea esi, [edi + 0x2c]
push esi
push 0x52f784
push ecx
mov eax, dword [ecx]
call dword [eax]
mov dword [ebp - 0x18], eax
test eax, eax
jns 0x4e5dfe
mov dword [esi], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x4e5ddd
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004fe27d
mov esp, ebp
pop ebp
ret 4
mov edx, dword [edi + 0x2c]
test edx, edx
je 0x4e5dc9
mov ecx, dword [edx]
lea eax, [edi + 0x18]
push eax
lea eax, [edi + 0x10]
push eax
push edx
call dword [ecx + 0x3c]
jmp 0x4e5dc9
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push 0x563de0
push eax
call fcn.004ffbbe
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push 0x563de0
push eax
call fcn.004ffbbe
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
push 0x563de0
push eax
call fcn.004ffbbe
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push 0x563de0
push eax
call fcn.004ffbbe
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x4c]
push 0x563de0
push eax
call fcn.004ffbbe
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x50]
push 0x563de0
push eax
call fcn.004ffbbe
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x54]
push 0x563de0
push eax
call fcn.004ffbbe
push 0x563de0
lea eax, [ebp - 0x58]
mov dword [ebp - 0x58], 0x80004005
push eax
call fcn.004ffbbe
int3