Function at 0x54cad5
Capabilities:
Read file on windows

Disassembly:
push 0x40
mov eax, 0x58b191
call fcn.00560e29
mov ebx, ecx
xor eax, eax
push eax
push 0x80
push 3
pop ecx
push ecx
push eax
mov dword [ebp - 0x20], eax
inc eax
push eax
push closesocket
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x28], esi
cmp esi, 0xffffffff
jne 0x54cb14
xor eax, eax
jmp 0x54ced3
push 0
lea eax, [ebp - 0x20]
push eax
push 4
lea edi, [ebx + 4]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [ebp - 0x20]
push ecx
push 4
lea eax, [ebx + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [ebx + 8]
xor ecx, ecx
imul esi, dword [edi]
push 0x28
pop edx
mov eax, esi
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.0055fc34
pop ecx
mov dword [ebp - 0x4c], eax
and dword [ebp - 4], 0
test eax, eax
je 0x54cb90
push fcn.0054a587
push 0x54a54d
push esi
push 0x28
pop ecx
mov dword [eax], esi
add eax, 4
push ecx
push eax
mov dword [ebp - 0x40], eax
call fcn.00561df0
mov eax, dword [ebp - 0x40]
jmp 0x54cb92
xor eax, eax
or dword [ebp - 4], 0xffffffff
xor esi, esi
mov dword [ebx + 0xc], eax
mov dword [ebp - 0x18], esi
cmp dword [ebx + 8], esi
jbe 0x54cbfe
xor edi, edi
cmp dword [ebx + 4], edi
jbe 0x54cbf2
push 0
lea eax, [ebp - 0x20]
push eax
push 2
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebx + 4]
imul eax, esi
add eax, edi
imul esi, eax, 0x28
add esi, dword [ebx + 0xc]
je 0x54cbe9
mov eax, dword [esi]
mov ecx, esi
push edi
call dword [eax + 0x10]
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x18]
call dword [eax + 0x18]
mov ax, word [ebp + 8]
mov word [esi + 0x1c], ax
mov esi, dword [ebp - 0x18]
inc edi
cmp edi, dword [ebx + 4]
jb 0x54cbaa
inc esi
mov dword [ebp - 0x18], esi
cmp esi, dword [ebx + 8]
jb 0x54cba3
lea edi, [ebx + 4]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi]
xor edx, edx
mov dword [ebx + 0x10], eax
push 3
pop edi
div edi
mov ecx, dword [ebx + 0xc]
xor edx, edx
mov esi, dword [ebx + 8]
mov dword [ebx + 0x2c], ecx
mov ecx, eax
mov eax, esi
mov dword [ebx + 0x18], ecx
div edi
push 0x28
mov edi, eax
mov dword [ebx + 0x14], esi
mov dword [ebx + 0x1c], edi
imul edi, ecx
xor ecx, ecx
pop edx
mov eax, edi
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.0055fc34
pop ecx
mov dword [ebp - 0x4c], eax
xor ecx, ecx
inc ecx
mov dword [ebp - 4], ecx
test eax, eax
je 0x54cc7e
push fcn.0054a587
push 0x54a54d
push edi
push 0x28
lea esi, [eax + 4]
mov dword [eax], edi
pop eax
push eax
push esi
call fcn.00561df0
jmp 0x54cc80
xor esi, esi
or dword [ebp - 4], 0xffffffff
mov dword [ebx + 0x30], esi
xor esi, esi
mov dword [ebp - 0x10], esi
cmp dword [ebx + 0x1c], esi
jbe 0x54ced0
xor eax, eax
mov dword [ebp - 0x18], eax
and dword [ebp - 0x1c], 0
cmp dword [ebx + 0x18], 0
jbe 0x54cebd
lea ecx, [eax + 2]
mov dword [ebp - 0x2c], ecx
dec ecx
push 2
mov dword [ebp - 0x24], ecx
pop ecx
mov dword [ebp - 0x14], ecx
lea edi, [ecx - 2]
mov ecx, ebx
push eax
push edi
call fcn.0054c6cc
mov esi, dword [ebp - 0x14]
mov ecx, ebx
push dword [ebp - 0x18]
dec esi
mov dword [ebp - 0x28], eax
push esi
call fcn.0054c6cc
push dword [ebp - 0x18]
mov ecx, ebx
mov dword [ebp - 0x44], eax
push dword [ebp - 0x14]
call fcn.0054c6cc
push dword [ebp - 0x24]
mov ecx, ebx
mov dword [ebp - 0x48], eax
push edi
call fcn.0054c6cc
push dword [ebp - 0x24]
mov ecx, ebx
mov dword [ebp - 0x4c], eax
push esi
call fcn.0054c6cc
push dword [ebp - 0x24]
mov ecx, ebx
mov dword [ebp - 0x34], eax
push dword [ebp - 0x14]
call fcn.0054c6cc
push dword [ebp - 0x2c]
mov ecx, ebx
mov dword [ebp - 0x30], eax
push edi
call fcn.0054c6cc
mov edi, dword [ebp - 0x2c]
mov ecx, ebx
push edi
push esi
mov dword [ebp - 0x38], eax
call fcn.0054c6cc
push edi
push dword [ebp - 0x14]
mov ecx, ebx
mov dword [ebp - 0x3c], eax
call fcn.0054c6cc
cmp dword [ebp - 0x28], 0
mov dword [ebp - 0x40], eax
je 0x54ce9e
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x54ce9e
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x54ce9e
mov edx, dword [ebp - 0x4c]
test edx, edx
je 0x54ce9e
mov esi, dword [ebp - 0x34]
test esi, esi
je 0x54ce9e
mov edi, dword [ebp - 0x30]
test edi, edi
je 0x54ce9e
cmp dword [ebp - 0x38], 0
je 0x54ce9e
cmp dword [ebp - 0x3c], 0
je 0x54ce9e
cmp dword [ebp - 0x40], 0
je 0x54ce9e
mov edi, dword [ebp - 0x28]
cmp byte [edi + 0x1c], 1
mov edi, dword [ebp - 0x30]
je 0x54ce88
mov esi, dword [ebp - 0x28]
cmp byte [esi + 0x1d], 0
mov esi, dword [ebp - 0x34]
jne 0x54ce88
cmp byte [eax + 0x1c], 1
je 0x54ce88
cmp byte [eax + 0x1d], 0
jne 0x54ce88
xor eax, eax
inc eax
cmp byte [ecx + 0x1c], al
je 0x54ce88
cmp byte [ecx + 0x1d], 0
jne 0x54ce88
xor ecx, ecx
inc ecx
cmp byte [edx + 0x1c], cl
je 0x54ce88
cmp byte [edx + 0x1d], 0
jne 0x54ce88
cmp byte [esi + 0x1c], cl
je 0x54ce88
cmp byte [esi + 0x1d], 0
jne 0x54ce88
cmp byte [edi + 0x1c], cl
je 0x54ce88
cmp byte [edi + 0x1d], 0
jne 0x54ce88
mov eax, dword [ebp - 0x38]
cmp byte [eax + 0x1c], cl
je 0x54ce88
cmp byte [eax + 0x1d], 0
jne 0x54ce88
mov eax, dword [ebp - 0x3c]
cmp byte [eax + 0x1c], cl
je 0x54ce88
cmp byte [eax + 0x1d], 0
jne 0x54ce88
mov eax, dword [ebp - 0x40]
cmp byte [eax + 0x1c], cl
je 0x54ce88
cmp byte [eax + 0x1d], 0
jne 0x54ce88
mov eax, dword [ebx + 0x18]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x1c]
imul eax, esi
add eax, edi
imul ecx, eax, 0x28
xor edx, edx
mov eax, dword [ebx + 0x30]
push edi
mov word [ecx + eax + 0x1c], dx
mov eax, dword [ebx + 0x18]
imul eax, esi
add eax, edi
imul ecx, eax, 0x28
add ecx, dword [ebx + 0x30]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov eax, dword [ebx + 0x18]
imul eax, esi
push esi
add eax, edi
imul ecx, eax, 0x28
add ecx, dword [ebx + 0x30]
mov eax, dword [ecx]
call dword [eax + 0x18]
jmp 0x54cea1
mov eax, dword [ebx + 0x18]
xor edx, edx
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x1c]
imul eax, esi
add eax, edi
imul ecx, eax, 0x28
inc edx
jmp 0x54ce56
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
inc eax
add ecx, 3
mov dword [ebp - 0x1c], eax
cmp eax, dword [ebx + 0x18]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], ecx
jb 0x54ccb8
inc esi
add eax, 3
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x18], eax
cmp esi, dword [ebx + 0x1c]
jb 0x54cc9a
xor eax, eax
inc eax
call fcn.00560e06
ret 4