Function at 0x54f1f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [ebp + 8]
push esi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
mov esi, ecx
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x54f22d
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
push ebx
push edi
push 0
lea ecx, [ebp - 0x10]
push ecx
push 4
lea ebx, [esi + 4]
push ebx
mov edx, eax
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 4
lea edi, [esi + 8]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [edi]
imul edi, dword [ebx]
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.0057a0e8
add esp, 4
test eax, eax
je 0x54f2a9
mov dword [eax], edi
add eax, 4
dec edi
mov dword [ebp - 0x30], eax
mov ebx, eax
js 0x54f2ab
mov ecx, ebx
call fcn.0054cb80
add ebx, 0x2c
dec edi
jns 0x54f297
mov eax, dword [ebp - 0x30]
jmp 0x54f2ab
xor eax, eax
cmp dword [esi + 8], 0
mov dword [esi + 0xc], eax
mov dword [ebp - 4], 0
jbe 0x54f31f
jmp 0x54f2c0
xor ebx, ebx
cmp dword [esi + 4], ebx
jbe 0x54f313
mov eax, dword [ebp - 8]
push 0
lea ecx, [ebp - 0x10]
push ecx
push 2
lea edx, [ebp + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [esi + 4]
imul edi, dword [ebp - 4]
add edi, ebx
imul edi, edi, 0x2c
add edi, dword [esi + 0xc]
je 0x54f30d
mov edx, dword [edi]
mov eax, dword [edx + 0x10]
push ebx
mov ecx, edi
call eax
mov edx, dword [edi]
mov eax, dword [ebp - 4]
mov edx, dword [edx + 0x18]
push eax
mov ecx, edi
call edx
mov ax, word [ebp + 8]
mov word [edi + 0x1c], ax
inc ebx
cmp ebx, dword [esi + 4]
jb 0x54f2c7
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [esi + 8]
jb 0x54f2c0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0xc]
mov edi, dword [esi + 8]
mov dword [esi + 0x2c], edx
mov eax, 0xaaaaaaab
mul ecx
mov dword [esi + 0x10], 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, 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.0057a0e8
add esp, 4
test eax, eax
je 0x54f3a4
mov dword [eax], edi
add eax, 4
dec edi
mov dword [ebp - 0x30], eax
mov ebx, eax
js 0x54f3a6
mov ecx, ebx
call fcn.0054cb80
add ebx, 0x2c
dec edi
jns 0x54f392
mov eax, dword [ebp - 0x30]
jmp 0x54f3a6
xor eax, eax
cmp dword [esi + 0x1c], 0
mov dword [esi + 0x30], eax
mov dword [ebp - 8], 0
jbe 0x54f669
mov dword [ebp - 0xc], 2
cmp dword [esi + 0x18], 0
mov dword [ebp - 4], 0
jbe 0x54f655
mov edi, 2
mov eax, dword [esi + 4]
mov ebx, dword [ebp - 0xc]
lea ecx, [edi - 2]
cmp ecx, eax
jae 0x54f3fe
lea ecx, [ebx - 2]
cmp ecx, dword [esi + 8]
jae 0x54f3fe
imul ecx, eax
lea ecx, [ecx + edi - 2]
imul ecx, ecx, 0x2c
add ecx, dword [esi + 0xc]
mov dword [ebp - 0x28], ecx
jne 0x54f405
mov dword [ebp - 0x28], 0
lea ecx, [edi - 1]
cmp ecx, eax
jae 0x54f42a
lea ecx, [ebx - 2]
cmp ecx, dword [esi + 8]
jae 0x54f42a
mov edx, dword [esi + 0xc]
imul ecx, eax
add ecx, edi
imul ecx, ecx, 0x2c
lea ecx, [ecx + edx - 0x2c]
mov dword [ebp - 0x2c], ecx
test ecx, ecx
jne 0x54f431
mov dword [ebp - 0x2c], 0
cmp edi, eax
jae 0x54f44d
lea ecx, [ebx - 2]
cmp ecx, dword [esi + 8]
jae 0x54f44d
imul ecx, eax
add ecx, edi
imul ecx, ecx, 0x2c
add ecx, dword [esi + 0xc]
mov dword [ebp - 0x30], ecx
jne 0x54f454
mov dword [ebp - 0x30], 0
lea ecx, [edi - 2]
cmp ecx, eax
jae 0x54f479
lea edx, [ebx - 1]
cmp edx, dword [esi + 8]
jae 0x54f479
imul edx, eax
lea edx, [edx + edi - 2]
imul edx, edx, 0x2c
add edx, dword [esi + 0xc]
je 0x54f479
mov dword [ebp - 0x14], edx
xor ecx, ecx
jmp 0x54f47e
xor ecx, ecx
mov dword [ebp - 0x14], ecx
lea edx, [edi - 1]
cmp edx, eax
jae 0x54f4a5
lea edx, [ebx - 1]
cmp edx, dword [esi + 8]
jae 0x54f4a5
mov ecx, dword [esi + 0xc]
imul edx, eax
add edx, edi
imul edx, edx, 0x2c
lea edx, [edx + ecx - 0x2c]
xor ecx, ecx
mov dword [ebp - 0x18], edx
cmp edx, ecx
jne 0x54f4a8
mov dword [ebp - 0x18], ecx
cmp edi, eax
jae 0x54f4c4
lea edx, [ebx - 1]
cmp edx, dword [esi + 8]
jae 0x54f4c4
imul edx, eax
add edx, edi
imul edx, edx, 0x2c
add edx, dword [esi + 0xc]
mov dword [ebp - 0x1c], edx
jne 0x54f4c7
mov dword [ebp - 0x1c], ecx
lea edx, [edi - 2]
cmp edx, eax
jae 0x54f4e7
cmp ebx, dword [esi + 8]
jae 0x54f4e7
mov edx, eax
imul edx, ebx
lea edx, [edx + edi - 2]
imul edx, edx, 0x2c
add edx, dword [esi + 0xc]
mov dword [ebp - 0x20], edx
jne 0x54f4ea
mov dword [ebp - 0x20], ecx
lea edx, [edi - 1]
cmp edx, eax
jae 0x54f510
cmp ebx, dword [esi + 8]
jae 0x54f510
mov edx, dword [esi + 0xc]
mov ecx, eax
imul ecx, ebx
add ecx, edi
imul ecx, ecx, 0x2c
lea edx, [ecx + edx - 0x2c]
xor ecx, ecx
mov dword [ebp - 0x24], edx
cmp edx, ecx
jne 0x54f513
mov dword [ebp - 0x24], ecx
cmp edi, eax
jae 0x54f52d
cmp ebx, dword [esi + 8]
jae 0x54f52d
imul eax, ebx
add eax, edi
imul eax, eax, 0x2c
add eax, dword [esi + 0xc]
je 0x54f52d
mov ebx, eax
jmp 0x54f52f
xor ebx, ebx
mov edx, dword [ebp - 0x28]
cmp edx, ecx
je 0x54f642
mov eax, dword [ebp - 0x2c]
cmp eax, ecx
je 0x54f642
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x54f642
cmp dword [ebp - 0x14], 0
je 0x54f642
cmp dword [ebp - 0x18], 0
je 0x54f642
cmp dword [ebp - 0x1c], 0
je 0x54f642
cmp dword [ebp - 0x20], 0
je 0x54f642
cmp dword [ebp - 0x24], 0
je 0x54f642
test ebx, ebx
je 0x54f642
cmp byte [edx + 0x1c], 1
je 0x54f5f6
cmp byte [edx + 0x1d], 0
jne 0x54f5f6
cmp byte [eax + 0x1c], 1
je 0x54f5f6
cmp byte [eax + 0x1d], 0
jne 0x54f5f6
call fcn.005492e0
test eax, eax
jne 0x54f5f6
mov ecx, dword [ebp - 0x14]
call fcn.005492e0
test eax, eax
jne 0x54f5f6
mov ecx, dword [ebp - 0x18]
call fcn.005492e0
test eax, eax
jne 0x54f5f6
mov ecx, dword [ebp - 0x1c]
call fcn.005492e0
test eax, eax
jne 0x54f5f6
mov ecx, dword [ebp - 0x20]
call fcn.005492e0
test eax, eax
jne 0x54f5f6
mov ecx, dword [ebp - 0x24]
call fcn.005492e0
test eax, eax
jne 0x54f5f6
mov ecx, ebx
call fcn.005492e0
test eax, eax
jne 0x54f5f6
xor edx, edx
jmp 0x54f5fb
mov edx, 1
mov eax, dword [esi + 0x18]
mov ebx, dword [ebp - 8]
mov ecx, dword [esi + 0x30]
imul eax, ebx
add eax, dword [ebp - 4]
imul eax, eax, 0x2c
mov word [eax + ecx + 0x1c], dx
mov ecx, dword [esi + 0x18]
mov eax, dword [ebp - 4]
imul ecx, ebx
add ecx, eax
imul ecx, ecx, 0x2c
add ecx, dword [esi + 0x30]
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
mov ecx, dword [esi + 0x18]
imul ecx, ebx
add ecx, dword [ebp - 4]
push ebx
imul ecx, ecx, 0x2c
add ecx, dword [esi + 0x30]
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
call edx
mov eax, dword [ebp - 4]
inc eax
add edi, 3
mov dword [ebp - 4], eax
cmp eax, dword [esi + 0x18]
jb 0x54f3d7
mov eax, dword [ebp - 8]
add dword [ebp - 0xc], 3
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [esi + 0x1c]
jb 0x54f3c1
pop edi
pop ebx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 4