Function at 0x5761a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bb816
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x6a0290]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push dword [ebp + 8]
mov dword [ebp - 0x20], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x34], esi
cmp esi, 0xffffffff
jne 0x57620c
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [ebp - 0x20]
push 0
push ecx
push 4
lea eax, [ebx + 4]
push eax
push esi
call edi
push 0
lea ecx, [ebp - 0x20]
push ecx
push 4
lea eax, [ebx + 8]
push eax
push esi
call edi
mov esi, dword [ebx + 8]
xor ecx, ecx
imul esi, dword [ebx + 4]
mov edx, 0x28
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.0058cd8a
add esp, 4
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x576286
push fcn.00573120
push 0x5730d0
push esi
lea edi, [eax + 4]
mov dword [eax], esi
push 0x28
push edi
call fcn.0058edc0
jmp 0x576288
xor edi, edi
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebx + 0xc], edi
mov dword [ebp - 0x18], esi
cmp dword [ebx + 8], esi
jbe 0x5762fd
lea esp, [esp]
xor edi, edi
cmp dword [ebx + 4], edi
jbe 0x5762f4
push 0
lea eax, [ebp - 0x20]
push eax
push 2
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebx + 4]
imul eax, esi
add eax, edi
lea ecx, [eax + eax*4]
mov eax, dword [ebx + 0xc]
lea esi, [eax + ecx*8]
test esi, esi
je 0x5762eb
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 0x5762a7
inc esi
mov dword [ebp - 0x18], esi
cmp esi, dword [ebx + 8]
jb 0x5762a0
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 4]
mov esi, dword [ebx + 8]
mov dword [ebx + 0x2c], eax
mov eax, 0xaaaaaaab
mul ecx
mov dword [ebx + 0x10], ecx
mov eax, 0xaaaaaaab
mov ecx, edx
mov dword [ebx + 0x14], esi
mul esi
shr ecx, 1
mov esi, edx
mov dword [ebx + 0x18], ecx
shr esi, 1
mov edx, 0x28
mov dword [ebx + 0x1c], esi
imul esi, ecx
xor ecx, ecx
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.0058cd8a
add esp, 4
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x576386
push fcn.00573120
push 0x5730d0
push esi
lea edi, [eax + 4]
mov dword [eax], esi
push 0x28
push edi
call fcn.0058edc0
jmp 0x576388
xor edi, edi
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebx + 0x30], edi
mov dword [ebp - 0x10], eax
lea ecx, [eax + 1]
cmp dword [ebx + 0x1c], eax
jbe 0x5766a1
xor edx, edx
mov dword [ebp - 0x18], edx
jmp 0x5763b0
cmp dword [ebx + 0x18], 0
mov dword [ebp - 0x1c], 0
jbe 0x576689
lea eax, [edx + 2]
mov esi, 2
mov dword [ebp - 0x14], eax
lea esp, [esp]
mov eax, dword [ebx + 4]
lea edi, [esi - 2]
cmp edi, eax
jae 0x5763f9
cmp edx, dword [ebx + 8]
jae 0x5763f9
mov ecx, eax
imul ecx, edx
add ecx, 0xfffffffe
add ecx, esi
lea edx, [ecx + ecx*4]
mov ecx, dword [ebx + 0xc]
lea edx, [ecx + edx*8]
mov dword [ebp - 0x38], edx
test edx, edx
jne 0x576400
mov dword [ebp - 0x38], 0
lea ecx, [esi - 1]
cmp ecx, eax
jae 0x576427
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebx + 8]
jae 0x576427
mov ecx, eax
imul ecx, edx
add ecx, esi
lea edx, [ecx + ecx*4]
mov ecx, dword [ebx + 0xc]
lea ecx, [ecx + edx*8]
add ecx, 0xffffffd8
mov dword [ebp - 0x3c], ecx
jne 0x57642e
mov dword [ebp - 0x3c], 0
cmp esi, eax
jae 0x576451
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebx + 8]
jae 0x576451
mov ecx, eax
imul ecx, edx
add ecx, esi
lea edx, [ecx + ecx*4]
mov ecx, dword [ebx + 0xc]
lea ecx, [ecx + edx*8]
mov dword [ebp - 0x24], ecx
test ecx, ecx
jne 0x576458
mov dword [ebp - 0x24], 0
cmp edi, eax
jae 0x57647f
mov edx, dword [ebp - 0x14]
dec edx
cmp edx, dword [ebx + 8]
jae 0x57647f
mov ecx, eax
imul ecx, edx
add ecx, 0xfffffffe
add ecx, esi
lea edx, [ecx + ecx*4]
mov ecx, dword [ebx + 0xc]
lea edx, [ecx + edx*8]
mov dword [ebp - 0x28], edx
test edx, edx
jne 0x576486
mov dword [ebp - 0x28], 0
lea ecx, [esi - 1]
cmp ecx, eax
jae 0x5764ae
mov edx, dword [ebp - 0x14]
dec edx
cmp edx, dword [ebx + 8]
jae 0x5764ae
mov ecx, eax
imul ecx, edx
add ecx, esi
lea edx, [ecx + ecx*4]
mov ecx, dword [ebx + 0xc]
lea ecx, [ecx + edx*8]
add ecx, 0xffffffd8
mov dword [ebp - 0x2c], ecx
jne 0x5764b5
mov dword [ebp - 0x2c], 0
cmp esi, eax
jae 0x5764d9
mov edx, dword [ebp - 0x14]
dec edx
cmp edx, dword [ebx + 8]
jae 0x5764d9
mov ecx, eax
imul ecx, edx
add ecx, esi
lea edx, [ecx + ecx*4]
mov ecx, dword [ebx + 0xc]
lea ecx, [ecx + edx*8]
mov dword [ebp - 0x30], ecx
test ecx, ecx
jne 0x5764e0
mov dword [ebp - 0x30], 0
cmp edi, eax
lea edi, [ebx + 8]
jae 0x576508
mov edx, dword [ebp - 0x14]
cmp edx, dword [edi]
jae 0x576508
mov ecx, eax
imul ecx, edx
add ecx, 0xfffffffe
add ecx, esi
lea edx, [ecx + ecx*4]
mov ecx, dword [ebx + 0xc]
lea edx, [ecx + edx*8]
mov dword [ebp - 0x34], edx
test edx, edx
jne 0x57650f
mov dword [ebp - 0x34], 0
lea ecx, [esi - 1]
cmp ecx, eax
jae 0x576537
mov edx, dword [ebp - 0x14]
cmp edx, dword [edi]
jae 0x576537
mov ecx, eax
imul ecx, edx
add ecx, esi
lea edx, [ecx + ecx*4]
mov ecx, dword [ebx + 0xc]
lea edx, [edx - 5]
lea edx, [ecx + edx*8]
mov dword [ebp - 0x40], edx
test edx, edx
jne 0x57653c
xor edx, edx
mov dword [ebp - 0x40], edx
cmp esi, eax
jae 0x576559
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [edi]
jae 0x576559
imul eax, ecx
add eax, esi
lea ecx, [eax + eax*4]
mov eax, dword [ebx + 0xc]
lea edi, [eax + ecx*8]
test edi, edi
jne 0x57655b
xor edi, edi
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x576670
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x576670
cmp dword [ebp - 0x24], 0
je 0x576670
cmp dword [ebp - 0x28], 0
je 0x576670
cmp dword [ebp - 0x2c], 0
je 0x576670
cmp dword [ebp - 0x30], 0
je 0x576670
cmp dword [ebp - 0x34], 0
je 0x576670
test edx, edx
je 0x576670
test edi, edi
je 0x576670
cmp byte [ecx + 0x1c], 1
je 0x576622
cmp byte [ecx + 0x1d], 0
jne 0x576622
cmp byte [eax + 0x1c], 1
je 0x576622
cmp byte [eax + 0x1d], 0
jne 0x576622
mov ecx, dword [ebp - 0x24]
call fcn.00509270
test eax, eax
jne 0x576622
mov ecx, dword [ebp - 0x28]
call fcn.00509270
test eax, eax
jne 0x576622
mov ecx, dword [ebp - 0x2c]
call fcn.00509270
test eax, eax
jne 0x576622
mov ecx, dword [ebp - 0x30]
call fcn.00509270
test eax, eax
jne 0x576622
mov ecx, dword [ebp - 0x34]
call fcn.00509270
test eax, eax
jne 0x576622
mov ecx, dword [ebp - 0x40]
call fcn.00509270
test eax, eax
jne 0x576622
mov ecx, edi
call fcn.00509270
test eax, eax
jne 0x576622
xor edx, edx
jmp 0x576627
mov edx, 1
mov eax, dword [ebx + 0x18]
imul eax, dword [ebp - 0x10]
mov edi, dword [ebp - 0x1c]
push edi
add eax, edi
lea ecx, [eax + eax*4]
mov eax, dword [ebx + 0x30]
mov word [eax + ecx*8 + 0x1c], dx
mov eax, dword [ebx + 0x18]
imul eax, dword [ebp - 0x10]
add eax, edi
lea ecx, [eax + eax*4]
mov eax, dword [ebx + 0x30]
lea ecx, [eax + ecx*8]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x18]
imul eax, edx
push edx
add eax, edi
lea ecx, [eax + eax*4]
mov eax, dword [ebx + 0x30]
lea ecx, [eax + ecx*8]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ecx, dword [ebp - 0x1c]
add esi, 3
mov edx, dword [ebp - 0x18]
inc ecx
mov dword [ebp - 0x1c], ecx
cmp ecx, dword [ebx + 0x18]
jb 0x5763d0
mov eax, dword [ebp - 0x10]
inc eax
add edx, 3
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], edx
cmp eax, dword [ebx + 0x1c]
jb 0x5763b0
mov ecx, 1
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4