Function at 0x56c730
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xa18
push ebx
push ebp
mov ebp, dword [esp + 0xa24]
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x30]
xor eax, eax
mov ecx, 0x312
mov edi, ebx
rep stosd dword es:[edi], eax
xor edi, edi
push 2
push edi
push 0xffffffffffffffc8
push ebp
mov dword [esp + 0x24], 0xfa0
mov word [esi + 0x68], di
mov word [esi + 0xa70], di
mov word [esi + 0x868], di
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [esp + 0x1c]
push eax
push 0x38
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x56c9af
cmp dword [ebx], 0xc054d55
mov dword [esp + 0x10], edi
je 0x56c86b
mov edi, 0xffffffc8
mov eax, dword [esp + 0x10]
test eax, eax
jl 0x56c7ed
mov edx, dword [esp + 0x14]
push 2
dec edi
push 0
push edi
dec edx
push ebp
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0x38
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x56c825
cmp dword [ebx], 0xc054d55
jne 0x56c84f
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x56c85d
push 0
push str.LoadEndOfCentralDirectory
push 0xaaaaaaa5
mov ecx, esi
call fcn.0056a380
xor eax, eax
mov edi, ebx
mov ecx, 0x312
rep stosd dword es:[edi], eax
pop edi
pop esi
pop ebp
mov eax, 0x8004e0b0
pop ebx
add esp, 0xa18
ret 4
push 0
push str.LoadEndOfCentralDirectory
push 0xaaaaaaaa
mov ecx, esi
call fcn.0056a380
mov ecx, 0x312
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x8004e008
mov eax, dword [esp + 0x14]
test eax, eax
ja 0x56c7a6
jmp 0x56c7ed
mov eax, dword [esp + 0x10]
test eax, eax
jl 0x56c9a2
xor edi, edi
mov eax, dword [esi + 0x58]
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x34]
mov dword [esi + 0x10a4], eax
mov eax, dword [esi + 0x5c]
cmp eax, edi
mov dword [esi + 0x10a0], edx
mov dword [esi + 0x10a8], ecx
jle 0x56c8e4
push edi
lea edx, [esp + 0x18]
push edx
add eax, eax
push eax
lea ecx, [esp + 0x234]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
je 0x56c99e
push 0x400
lea edx, [esp + 0x22c]
push edx
lea ebx, [esi + 0x68]
push ebx
call dword [0x5d2618]
add esp, 0xc
cmp ebx, edi
mov word [ebx + 0x7fe], di
je 0x56c8dc
push ebx
call dword [0x5d2620]
add esp, 4
mov eax, dword [esi + 0x5c]
mov word [esi + eax*2 + 0x68], di
mov eax, dword [esi + 0x60]
cmp eax, edi
jle 0x56c943
push edi
lea ecx, [esp + 0x18]
push ecx
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x2c]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
je 0x56c99e
push 0x104
lea ecx, [esp + 0x24]
push ecx
lea ebx, [esi + 0x868]
push ebx
call dword [0x5d2618]
add esp, 0xc
cmp ebx, edi
mov word [ebx + 0x206], di
je 0x56c938
push ebx
call dword [0x5d2620]
add esp, 4
mov edx, dword [esi + 0x60]
mov word [esi + edx*2 + 0x868], di
mov eax, dword [esi + 0x64]
cmp eax, edi
jle 0x56c99e
push edi
lea ecx, [esp + 0x18]
push ecx
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x2c]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x56c99e
push 0x104
lea ecx, [esp + 0x24]
push ecx
lea ebx, [esi + 0xa70]
push ebx
call dword [0x5d2618]
add esp, 0xc
cmp ebx, edi
mov word [ebx + 0x206], di
je 0x56c993
push ebx
call dword [0x5d2620]
add esp, 4
mov edx, dword [esi + 0x64]
mov word [esi + edx*2 + 0xa70], di
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa18
ret 4
push edi
push str.LoadEndOfCentralDirectory
push 0xaaaaaaaa
mov ecx, esi
call fcn.0056a380
pop edi
pop esi
pop ebp
mov eax, 0x8004e008
pop ebx
add esp, 0xa18
ret 4