Function at 0x5568e0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5ca976
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x70a108]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x50]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
mov dword [esp + 0x3c], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [esp + 0x1c], edi
cmp edi, 0xffffffff
jne 0x556940
xor eax, eax
jmp 0x556d57
push 0
lea ecx, [esp + 0x24]
push ecx
push 4
lea ebp, [esi + 4]
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea edx, [esp + 0x24]
push edx
push 4
lea ebx, [esi + 8]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [ebx]
imul edi, dword [ebp]
xor ecx, ecx
mov eax, edi
mov edx, 0x2c
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.00584f70
add esp, 4
mov dword [esp + 0x3c], eax
mov dword [esp + 0x48], 0
test eax, eax
je 0x5569c7
push fcn.00554e20
push 0x554df0
push edi
mov dword [eax], edi
add eax, 4
push 0x2c
push eax
mov dword [esp + 0x44], eax
call fcn.00589f40
mov eax, dword [esp + 0x30]
jmp 0x5569c9
xor eax, eax
cmp dword [ebx], 0
mov dword [esp + 0x48], 0xffffffff
mov dword [esi + 0xc], eax
mov dword [esp + 0x18], 0
jbe 0x556a4a
xor ebx, ebx
cmp dword [ebp], ebx
jbe 0x556a3a
mov eax, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x24]
push ecx
push 2
lea edx, [esp + 0x5c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [ebp]
imul edi, dword [esp + 0x18]
add edi, ebx
imul edi, edi, 0x2c
add edi, dword [esi + 0xc]
je 0x556a34
mov edx, dword [edi]
mov eax, dword [edx + 0x10]
push ebx
mov ecx, edi
call eax
mov edx, dword [edi]
mov eax, dword [esp + 0x18]
mov edx, dword [edx + 0x18]
push eax
mov ecx, edi
call edx
mov ax, word [esp + 0x50]
mov word [edi + 0x1c], ax
inc ebx
cmp ebx, dword [ebp]
jb 0x5569e8
mov eax, dword [esp + 0x18]
inc eax
lea ebx, [esi + 8]
mov dword [esp + 0x18], eax
cmp eax, dword [ebx]
jb 0x5569e1
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esi + 0xc]
mov ebp, dword [ebp]
mov ebx, dword [ebx]
mov dword [esi + 0x2c], edx
mov eax, 0xaaaaaaab
mul ebp
mov ecx, edx
mov eax, 0xaaaaaaab
mul ebx
shr ecx, 1
shr edx, 1
mov dword [esi + 0x1c], edx
imul edx, ecx
mov dword [esi + 0x18], ecx
mov edi, edx
xor ecx, ecx
mov eax, edi
mov edx, 0x2c
mul edx
seto cl
mov dword [esi + 0x10], ebp
mov dword [esi + 0x14], ebx
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.00584f70
add esp, 4
mov dword [esp + 0x3c], eax
mov dword [esp + 0x48], 1
test eax, eax
je 0x556ad6
push fcn.00554e20
push 0x554df0
push edi
lea ebx, [eax + 4]
push 0x2c
push ebx
mov dword [eax], edi
call fcn.00589f40
jmp 0x556ad8
xor ebx, ebx
cmp dword [esi + 0x1c], 0
mov dword [esp + 0x48], 0xffffffff
mov dword [esi + 0x30], ebx
mov dword [esp + 0x1c], 0
jbe 0x556d52
mov dword [esp + 0x14], 2
cmp dword [esi + 0x18], 0
mov dword [esp + 0x18], 0
jbe 0x556d3b
mov edi, 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffffe
push eax
lea ebp, [edi - 2]
push ebp
mov ecx, esi
call fcn.00555c30
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffffe
push eax
lea ebx, [edi - 1]
push ebx
call fcn.00555c30
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffffe
push eax
push edi
call fcn.00555c30
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x14]
dec eax
push eax
push ebp
call fcn.00555c30
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x14]
dec eax
push eax
push ebx
call fcn.00555c30
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x14]
dec eax
push eax
push edi
call fcn.00555c30
mov ecx, dword [esp + 0x14]
push ecx
push ebp
mov ecx, esi
mov dword [esp + 0x34], eax
call fcn.00555c30
mov ebp, dword [esp + 0x14]
push ebp
push ebx
mov dword [esp + 0x38], eax
call fcn.00555c30
push ebp
push edi
mov ebx, eax
call fcn.00555c30
mov ebp, eax
mov eax, dword [esp + 0x34]
test eax, eax
je 0x556d26
mov edx, dword [esp + 0x38]
test edx, edx
je 0x556d26
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x556d26
cmp dword [esp + 0x24], 0
je 0x556d26
cmp dword [esp + 0x28], 0
je 0x556d26
cmp dword [esp + 0x2c], 0
je 0x556d26
cmp dword [esp + 0x30], 0
je 0x556d26
test ebx, ebx
je 0x556d26
test ebp, ebp
je 0x556d26
cmp byte [eax + 0x1c], 1
je 0x556cd7
cmp byte [eax + 0x1d], 0
jne 0x556cd7
cmp byte [edx + 0x1c], 1
je 0x556cd7
cmp byte [edx + 0x1d], 0
jne 0x556cd7
call fcn.0054ed50
test eax, eax
jne 0x556cd7
mov ecx, dword [esp + 0x24]
call fcn.0054ed50
test eax, eax
jne 0x556cd7
mov ecx, dword [esp + 0x28]
call fcn.0054ed50
test eax, eax
jne 0x556cd7
mov ecx, dword [esp + 0x2c]
call fcn.0054ed50
test eax, eax
jne 0x556cd7
mov ecx, dword [esp + 0x30]
call fcn.0054ed50
test eax, eax
jne 0x556cd7
mov ecx, ebx
call fcn.0054ed50
test eax, eax
jne 0x556cd7
mov ecx, ebp
call fcn.0054ed50
test eax, eax
jne 0x556cd7
mov edx, dword [esi + 0x18]
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
imul edx, ebp
mov eax, dword [esi + 0x30]
add edx, ebx
imul edx, edx, 0x2c
xor ecx, ecx
mov word [edx + eax + 0x1c], cx
mov ecx, dword [esi + 0x18]
imul ecx, ebp
add ecx, ebx
imul ecx, ecx, 0x2c
add ecx, dword [esi + 0x30]
push ebx
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
mov ecx, dword [esi + 0x18]
imul ecx, ebp
add ecx, ebx
imul ecx, ecx, 0x2c
add ecx, dword [esi + 0x30]
push ebp
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
call edx
jmp 0x556d2a
mov eax, dword [esi + 0x18]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
imul eax, ebx
mov ecx, dword [esi + 0x30]
add eax, ebp
imul eax, eax, 0x2c
mov edx, 1
mov word [eax + ecx + 0x1c], dx
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x30]
imul eax, ebx
add eax, ebp
imul eax, eax, 0x2c
mov edx, dword [ecx + eax]
add ecx, eax
mov eax, dword [edx + 0x10]
push ebp
call eax
mov ecx, dword [esi + 0x18]
imul ecx, ebx
add ecx, ebp
imul ecx, ecx, 0x2c
add ecx, dword [esi + 0x30]
push ebx
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
call edx
mov ebx, dword [esp + 0x18]
inc ebx
add edi, 3
mov dword [esp + 0x18], ebx
cmp ebx, dword [esi + 0x18]
jb 0x556b14
mov eax, dword [esp + 0x1c]
add dword [esp + 0x14], 3
inc eax
mov dword [esp + 0x1c], eax
cmp eax, dword [esi + 0x1c]
jb 0x556afd
mov eax, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 4