Function at 0x549b75
Capabilities:
Read file on windows

Disassembly:
push 0x40
mov eax, 0x5883ad
call fcn.0055dd89
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 0x549bb4
xor eax, eax
jmp 0x549f73
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.0055cb9e
pop ecx
mov dword [ebp - 0x4c], eax
and dword [ebp - 4], 0
test eax, eax
je 0x549c30
push fcn.005477ae
push 0x547774
push esi
push 0x28
pop ecx
mov dword [eax], esi
add eax, 4
push ecx
push eax
mov dword [ebp - 0x40], eax
call fcn.0055ed50
mov eax, dword [ebp - 0x40]
jmp 0x549c32
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 0x549c9e
xor edi, edi
cmp dword [ebx + 4], edi
jbe 0x549c92
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 0x549c89
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 0x549c4a
inc esi
mov dword [ebp - 0x18], esi
cmp esi, dword [ebx + 8]
jb 0x549c43
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.0055cb9e
pop ecx
mov dword [ebp - 0x4c], eax
xor ecx, ecx
inc ecx
mov dword [ebp - 4], ecx
test eax, eax
je 0x549d1e
push fcn.005477ae
push 0x547774
push edi
push 0x28
lea esi, [eax + 4]
mov dword [eax], edi
pop eax
push eax
push esi
call fcn.0055ed50
jmp 0x549d20
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 0x549f70
xor eax, eax
mov dword [ebp - 0x18], eax
and dword [ebp - 0x1c], 0
cmp dword [ebx + 0x18], 0
jbe 0x549f5d
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.0054976c
mov esi, dword [ebp - 0x14]
mov ecx, ebx
push dword [ebp - 0x18]
dec esi
mov dword [ebp - 0x28], eax
push esi
call fcn.0054976c
push dword [ebp - 0x18]
mov ecx, ebx
mov dword [ebp - 0x44], eax
push dword [ebp - 0x14]
call fcn.0054976c
push dword [ebp - 0x24]
mov ecx, ebx
mov dword [ebp - 0x48], eax
push edi
call fcn.0054976c
push dword [ebp - 0x24]
mov ecx, ebx
mov dword [ebp - 0x4c], eax
push esi
call fcn.0054976c
push dword [ebp - 0x24]
mov ecx, ebx
mov dword [ebp - 0x34], eax
push dword [ebp - 0x14]
call fcn.0054976c
push dword [ebp - 0x2c]
mov ecx, ebx
mov dword [ebp - 0x30], eax
push edi
call fcn.0054976c
mov edi, dword [ebp - 0x2c]
mov ecx, ebx
push edi
push esi
mov dword [ebp - 0x38], eax
call fcn.0054976c
push edi
push dword [ebp - 0x14]
mov ecx, ebx
mov dword [ebp - 0x3c], eax
call fcn.0054976c
cmp dword [ebp - 0x28], 0
mov dword [ebp - 0x40], eax
je 0x549f3e
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x549f3e
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x549f3e
mov edx, dword [ebp - 0x4c]
test edx, edx
je 0x549f3e
mov esi, dword [ebp - 0x34]
test esi, esi
je 0x549f3e
mov edi, dword [ebp - 0x30]
test edi, edi
je 0x549f3e
cmp dword [ebp - 0x38], 0
je 0x549f3e
cmp dword [ebp - 0x3c], 0
je 0x549f3e
cmp dword [ebp - 0x40], 0
je 0x549f3e
mov edi, dword [ebp - 0x28]
cmp byte [edi + 0x1c], 1
mov edi, dword [ebp - 0x30]
je 0x549f28
mov esi, dword [ebp - 0x28]
cmp byte [esi + 0x1d], 0
mov esi, dword [ebp - 0x34]
jne 0x549f28
cmp byte [eax + 0x1c], 1
je 0x549f28
cmp byte [eax + 0x1d], 0
jne 0x549f28
xor eax, eax
inc eax
cmp byte [ecx + 0x1c], al
je 0x549f28
cmp byte [ecx + 0x1d], 0
jne 0x549f28
xor ecx, ecx
inc ecx
cmp byte [edx + 0x1c], cl
je 0x549f28
cmp byte [edx + 0x1d], 0
jne 0x549f28
cmp byte [esi + 0x1c], cl
je 0x549f28
cmp byte [esi + 0x1d], 0
jne 0x549f28
cmp byte [edi + 0x1c], cl
je 0x549f28
cmp byte [edi + 0x1d], 0
jne 0x549f28
mov eax, dword [ebp - 0x38]
cmp byte [eax + 0x1c], cl
je 0x549f28
cmp byte [eax + 0x1d], 0
jne 0x549f28
mov eax, dword [ebp - 0x3c]
cmp byte [eax + 0x1c], cl
je 0x549f28
cmp byte [eax + 0x1d], 0
jne 0x549f28
mov eax, dword [ebp - 0x40]
cmp byte [eax + 0x1c], cl
je 0x549f28
cmp byte [eax + 0x1d], 0
jne 0x549f28
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 0x549f41
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 0x549ef6
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 0x549d58
inc esi
add eax, 3
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x18], eax
cmp esi, dword [ebx + 0x1c]
jb 0x549d3a
xor eax, eax
inc eax
call fcn.0055dd66
ret 4