Function at 0x5e18f0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x619877
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x188
mov eax, dword [0x6ae450]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x180], esi
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 8]
mov dword [ebp - 0x184], ecx
mov ecx, dword [ebx + 0x14]
push eax
mov dword [ebp - 0x188], ecx
call fcn.005e17a0
mov ecx, dword [esi]
add esp, 4
mov edi, 1
mov esi, ecx
mov edx, dword [ecx + 4]
cmp byte [edx + 0xd], 0
jne 0x5e1984
lea ecx, [ecx]
cmp dword [edx + 0x10], eax
jae 0x5e197a
mov edx, dword [edx + 8]
jmp 0x5e197e
mov esi, edx
mov edx, dword [edx]
cmp byte [edx + 0xd], 0
je 0x5e1970
cmp esi, ecx
je 0x5e1993
mov dword [ebp - 0x17c], esi
cmp eax, dword [esi + 0x10]
jae 0x5e1999
mov dword [ebp - 0x17c], ecx
lea esi, [ebp - 0x17c]
mov esi, dword [esi]
cmp esi, ecx
je 0x5e1c29
mov edi, dword [esi + 0x20]
cmp edi, dword [esi + 0x24]
jne 0x5e1abf
mov eax, dword [ebp - 0x180]
cmp dword [ebx + 0x10], edi
push 0
cmovb edi, dword [ebx + 0x10]
push 0
push dword [esi + 0x1c]
mov dword [ebp - 0x17c], edi
push dword [esi + 0x18]
push dword [eax + 0x8c]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0
lea eax, [ebp - 0x198]
push eax
mov eax, dword [ebp - 0x180]
push edi
push dword [ebp - 0x184]
push dword [eax + 0x8c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x180]
mov dword [ebp - 4], 0
lea eax, [ecx + 0x28]
push eax
lea eax, [ecx + 8]
push 0x20
push eax
lea ecx, [ebp - 0x178]
call fcn.005e1180
mov eax, dword [ebp - 0x184]
lea ecx, [ebp - 0x174]
push edi
push eax
push eax
mov byte [ebp - 4], 1
call fcn.004c8870
lea ecx, [ebp - 0x178]
mov byte [ebp - 4], 2
call fcn.005e1470
lea eax, [ebp - 0x128]
neg eax
lea ecx, [ebp - 0x128]
and eax, 0xf
add eax, ecx
mov ecx, dword [ebp - 0x24]
cmp ecx, eax
jne 0x5e1a72
mov edi, ecx
xor eax, eax
mov ecx, dword [ebp - 0x28]
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x17c]
cmp edi, dword [esi + 0x20]
jne 0x5e1a94
push 0xa0fed0c
push edi
push dword [ebp - 0x184]
call fcn.005ef410
add esp, 0xc
cmp eax, dword [esi + 0x28]
jne 0x5e1be0
mov eax, dword [ebp - 0x188]
test eax, eax
je 0x5e1c27
mov dword [eax], edi
jmp 0x5e1c27
mov eax, dword [esi + 0x24]
lea ecx, [ebp - 0x194]
add eax, edi
push eax
call fcn.005e12f0
mov eax, dword [ebp - 0x180]
push 0
push 0
push dword [esi + 0x1c]
mov dword [ebp - 4], 4
push dword [esi + 0x18]
push dword [eax + 0x8c]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov edi, dword [ebp - 0x194]
lea eax, [ebp - 0x19c]
push 0
push eax
push dword [esi + 0x20]
mov eax, dword [ebp - 0x180]
push edi
push dword [eax + 0x8c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x180]
mov byte [ebp - 4], 5
lea eax, [ecx + 0x28]
push eax
lea eax, [ecx + 8]
push 0x20
push eax
lea ecx, [ebp - 0x178]
call fcn.005e1180
push dword [esi + 0x20]
lea ecx, [ebp - 0x174]
mov byte [ebp - 4], 6
push edi
push edi
call fcn.004c8870
lea ecx, [ebp - 0x178]
mov byte [ebp - 4], 7
call fcn.005e1470
lea eax, [ebp - 0x128]
neg eax
lea ecx, [ebp - 0x128]
and eax, 0xf
add eax, ecx
mov ecx, dword [ebp - 0x24]
cmp ecx, eax
jne 0x5e1b83
mov edi, ecx
xor eax, eax
mov ecx, dword [ebp - 0x28]
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x194]
mov eax, dword [esi + 0x20]
push dword [esi + 0x24]
mov ecx, dword [esi + 0x20]
add eax, edi
push eax
push edi
mov dword [ebp - 0x17c], ecx
call fcn.005ef1c0
mov ecx, dword [ebp - 0x17c]
add esp, 0xc
cmp eax, ecx
je 0x5e1bbc
test edi, edi
je 0x5e1bb5
push edi
call fcn.004c3680
add esp, 4
mov eax, 6
jmp 0x5e1c2b
push 0xa0fed0c
push dword [esi + 0x24]
lea eax, [edi + ecx]
push eax
call fcn.005ef410
add esp, 0xc
cmp eax, dword [esi + 0x28]
je 0x5e1be7
lea ecx, [ebp - 0x194]
call fcn.0043e680
mov eax, 2
jmp 0x5e1c2b
mov eax, dword [esi + 0x24]
cmp dword [ebx + 0x10], eax
cmovb eax, dword [ebx + 0x10]
push eax
mov eax, dword [esi + 0x20]
add eax, edi
push eax
push dword [ebp - 0x184]
call fcn.005b9470
mov edx, dword [ebp - 0x188]
add esp, 0xc
test edx, edx
je 0x5e1c1c
mov eax, dword [esi + 0x24]
cmp dword [ebx + 0x10], eax
cmovb eax, dword [ebx + 0x10]
mov dword [edx], eax
lea ecx, [ebp - 0x194]
call fcn.0043e680
xor edi, edi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.005b509b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10