Function at 0x55ac20
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x2c
mov eax, dword [esp + 0x30]
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
mov esi, ecx
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [esp + 8], edi
cmp edi, 0xffffffff
jne 0x55ac61
pop edi
xor eax, eax
pop esi
add esp, 0x2c
ret 4
push ebx
push ebp
push 0
lea ecx, [esp + 0x20]
push ecx
push 4
lea ebp, [esi + 4]
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea edx, [esp + 0x20]
push edx
push 4
lea ebx, [esi + 8]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [ebx]
imul ebx, dword [ebp]
xor ecx, ecx
mov eax, ebx
mov edx, 0x28
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.00589e28
add esp, 4
test eax, eax
je 0x55ace7
mov dword [eax], ebx
add eax, 4
dec ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], eax
js 0x55ace9
lea esp, [esp]
mov ecx, dword [esp + 0x18]
call fcn.005590c0
add dword [esp + 0x18], 0x28
dec ebx
jns 0x55acd0
mov eax, dword [esp + 0x2c]
jmp 0x55ace9
xor eax, eax
cmp dword [esi + 8], 0
mov dword [esi + 0xc], eax
mov dword [esp + 0x14], 0
jbe 0x55ad6c
lea ebx, [ebx]
xor ebx, ebx
cmp dword [ebp], ebx
jbe 0x55ad5e
push 0
lea ecx, [esp + 0x20]
push ecx
push 2
lea edx, [esp + 0x4c]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp]
imul eax, dword [esp + 0x14]
mov ecx, dword [esi + 0xc]
add eax, ebx
lea eax, [eax + eax*4]
lea edi, [ecx + eax*8]
test edi, edi
je 0x55ad54
mov edx, dword [edi]
mov eax, dword [edx + 0x10]
push ebx
mov ecx, edi
call eax
mov edx, dword [edi]
mov eax, dword [esp + 0x14]
mov edx, dword [edx + 0x18]
push eax
mov ecx, edi
call edx
mov ax, word [esp + 0x40]
mov word [edi + 0x1c], ax
mov edi, dword [esp + 0x10]
inc ebx
cmp ebx, dword [ebp]
jb 0x55ad07
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esi + 8]
jb 0x55ad00
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, dword [ebp]
mov ecx, dword [esi + 0xc]
mov edi, dword [esi + 8]
mov eax, 0xaaaaaaab
mul ebp
mov dword [esi + 0x2c], ecx
mov ecx, edx
mov eax, 0xaaaaaaab
mul edi
shr ecx, 1
shr edx, 1
mov dword [esi + 0x1c], edx
imul edx, ecx
mov dword [esi + 0x18], ecx
mov dword [esi + 0x14], edi
mov edi, edx
xor ecx, ecx
mov eax, edi
mov edx, 0x28
mul edx
seto cl
mov dword [esi + 0x10], ebp
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.00589e28
add esp, 4
test eax, eax
je 0x55adef
mov dword [eax], edi
dec edi
lea ebp, [eax + 4]
mov ebx, ebp
js 0x55adf1
lea esp, [esp]
mov ecx, ebx
call fcn.005590c0
add ebx, 0x28
dec edi
jns 0x55ade0
jmp 0x55adf1
xor ebp, ebp
cmp dword [esi + 0x1c], 0
mov dword [esi + 0x30], ebp
mov dword [esp + 0x18], 0
jbe 0x55b083
mov dword [esp + 0x10], 2
mov edi, edi
cmp dword [esi + 0x18], 0
mov dword [esp + 0x14], 0
jbe 0x55b06c
mov edi, 2
mov eax, dword [esp + 0x10]
add eax, 0xfffffffe
push eax
lea ebp, [edi - 2]
push ebp
mov ecx, esi
call fcn.00559ec0
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffffe
push eax
lea ebx, [edi - 1]
push ebx
mov ecx, esi
call fcn.00559ec0
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffffe
push eax
push edi
mov ecx, esi
call fcn.00559ec0
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x10]
dec eax
push eax
push ebp
mov ecx, esi
call fcn.00559ec0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
dec eax
push eax
push ebx
mov ecx, esi
call fcn.00559ec0
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x10]
dec eax
push eax
push edi
mov ecx, esi
call fcn.00559ec0
mov ecx, dword [esp + 0x10]
push ecx
push ebp
mov ecx, esi
mov dword [esp + 0x30], eax
call fcn.00559ec0
mov ebp, dword [esp + 0x10]
push ebp
push ebx
mov ecx, esi
mov dword [esp + 0x34], eax
call fcn.00559ec0
push ebp
push edi
mov ecx, esi
mov ebx, eax
call fcn.00559ec0
mov ebp, eax
mov eax, dword [esp + 0x30]
test eax, eax
je 0x55b057
mov edx, dword [esp + 0x34]
test edx, edx
je 0x55b057
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x55b057
cmp dword [esp + 0x20], 0
je 0x55b057
cmp dword [esp + 0x24], 0
je 0x55b057
cmp dword [esp + 0x28], 0
je 0x55b057
cmp dword [esp + 0x2c], 0
je 0x55b057
test ebx, ebx
je 0x55b057
test ebp, ebp
je 0x55b057
cmp byte [eax + 0x1c], 1
je 0x55b003
cmp byte [eax + 0x1d], 0
jne 0x55b003
cmp byte [edx + 0x1c], 1
je 0x55b003
cmp byte [edx + 0x1d], 0
jne 0x55b003
call fcn.00555790
test eax, eax
jne 0x55b003
mov ecx, dword [esp + 0x20]
call fcn.00555790
test eax, eax
jne 0x55b003
mov ecx, dword [esp + 0x24]
call fcn.00555790
test eax, eax
jne 0x55b003
mov ecx, dword [esp + 0x28]
call fcn.00555790
test eax, eax
jne 0x55b003
mov ecx, dword [esp + 0x2c]
call fcn.00555790
test eax, eax
jne 0x55b003
mov ecx, ebx
call fcn.00555790
test eax, eax
jne 0x55b003
mov ecx, ebp
call fcn.00555790
test eax, eax
jne 0x55b003
mov eax, dword [esi + 0x18]
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
imul eax, ebp
add eax, ebx
lea edx, [eax + eax*4]
mov eax, dword [esi + 0x30]
xor ecx, ecx
mov word [eax + edx*8 + 0x1c], cx
mov eax, dword [esi + 0x18]
imul eax, ebp
add eax, ebx
lea edx, [eax + eax*4]
mov eax, dword [esi + 0x30]
lea ecx, [eax + edx*8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
push ebx
call eax
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x30]
imul eax, ebp
add eax, ebx
lea ecx, [eax + eax*4]
mov eax, dword [edx + ecx*8]
lea ecx, [edx + ecx*8]
mov edx, dword [eax + 0x18]
push ebp
call edx
jmp 0x55b05b
mov eax, dword [esi + 0x18]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
imul eax, ebx
mov ecx, dword [esi + 0x30]
add eax, ebp
lea eax, [eax + eax*4]
mov edx, 1
mov word [ecx + eax*8 + 0x1c], dx
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x30]
imul eax, ebx
add eax, ebp
lea eax, [eax + eax*4]
mov edx, dword [ecx + eax*8]
lea ecx, [ecx + eax*8]
mov eax, dword [edx + 0x10]
push ebp
call eax
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x30]
imul eax, ebx
add eax, ebp
lea ecx, [eax + eax*4]
mov eax, dword [edx + ecx*8]
lea ecx, [edx + ecx*8]
mov edx, dword [eax + 0x18]
push ebx
call edx
mov ebx, dword [esp + 0x14]
inc ebx
add edi, 3
mov dword [esp + 0x14], ebx
cmp ebx, dword [esi + 0x18]
jb 0x55ae27
mov eax, dword [esp + 0x18]
add dword [esp + 0x10], 3
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esi + 0x1c]
jb 0x55ae10
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 0x2c
ret 4