Function at 0x568060
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a8706
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0xa37210]
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 0x5680cc
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.0057a872
add esp, 4
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x568146
push fcn.00565030
push 0x564fe0
push esi
lea edi, [eax + 4]
mov dword [eax], esi
push 0x28
push edi
call fcn.0057c900
jmp 0x568148
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 0x5681bd
lea esp, [esp]
xor edi, edi
cmp dword [ebx + 4], edi
jbe 0x5681b4
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 0x5681ab
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 0x568167
inc esi
mov dword [ebp - 0x18], esi
cmp esi, dword [ebx + 8]
jb 0x568160
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.0057a872
add esp, 4
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x568246
push fcn.00565030
push 0x564fe0
push esi
lea edi, [eax + 4]
mov dword [eax], esi
push 0x28
push edi
call fcn.0057c900
jmp 0x568248
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 0x568561
xor edx, edx
mov dword [ebp - 0x18], edx
jmp 0x568270
cmp dword [ebx + 0x18], 0
mov dword [ebp - 0x1c], 0
jbe 0x568549
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 0x5682b9
cmp edx, dword [ebx + 8]
jae 0x5682b9
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 0x5682c0
mov dword [ebp - 0x38], 0
lea ecx, [esi - 1]
cmp ecx, eax
jae 0x5682e7
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebx + 8]
jae 0x5682e7
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 0x5682ee
mov dword [ebp - 0x3c], 0
cmp esi, eax
jae 0x568311
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebx + 8]
jae 0x568311
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 0x568318
mov dword [ebp - 0x24], 0
cmp edi, eax
jae 0x56833f
mov edx, dword [ebp - 0x14]
dec edx
cmp edx, dword [ebx + 8]
jae 0x56833f
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 0x568346
mov dword [ebp - 0x28], 0
lea ecx, [esi - 1]
cmp ecx, eax
jae 0x56836e
mov edx, dword [ebp - 0x14]
dec edx
cmp edx, dword [ebx + 8]
jae 0x56836e
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 0x568375
mov dword [ebp - 0x2c], 0
cmp esi, eax
jae 0x568399
mov edx, dword [ebp - 0x14]
dec edx
cmp edx, dword [ebx + 8]
jae 0x568399
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 0x5683a0
mov dword [ebp - 0x30], 0
cmp edi, eax
lea edi, [ebx + 8]
jae 0x5683c8
mov edx, dword [ebp - 0x14]
cmp edx, dword [edi]
jae 0x5683c8
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 0x5683cf
mov dword [ebp - 0x34], 0
lea ecx, [esi - 1]
cmp ecx, eax
jae 0x5683f7
mov edx, dword [ebp - 0x14]
cmp edx, dword [edi]
jae 0x5683f7
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 0x5683fc
xor edx, edx
mov dword [ebp - 0x40], edx
cmp esi, eax
jae 0x568419
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [edi]
jae 0x568419
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 0x56841b
xor edi, edi
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x568530
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x568530
cmp dword [ebp - 0x24], 0
je 0x568530
cmp dword [ebp - 0x28], 0
je 0x568530
cmp dword [ebp - 0x2c], 0
je 0x568530
cmp dword [ebp - 0x30], 0
je 0x568530
cmp dword [ebp - 0x34], 0
je 0x568530
test edx, edx
je 0x568530
test edi, edi
je 0x568530
cmp byte [ecx + 0x1c], 1
je 0x5684e2
cmp byte [ecx + 0x1d], 0
jne 0x5684e2
cmp byte [eax + 0x1c], 1
je 0x5684e2
cmp byte [eax + 0x1d], 0
jne 0x5684e2
mov ecx, dword [ebp - 0x24]
call fcn.004f97a0
test eax, eax
jne 0x5684e2
mov ecx, dword [ebp - 0x28]
call fcn.004f97a0
test eax, eax
jne 0x5684e2
mov ecx, dword [ebp - 0x2c]
call fcn.004f97a0
test eax, eax
jne 0x5684e2
mov ecx, dword [ebp - 0x30]
call fcn.004f97a0
test eax, eax
jne 0x5684e2
mov ecx, dword [ebp - 0x34]
call fcn.004f97a0
test eax, eax
jne 0x5684e2
mov ecx, dword [ebp - 0x40]
call fcn.004f97a0
test eax, eax
jne 0x5684e2
mov ecx, edi
call fcn.004f97a0
test eax, eax
jne 0x5684e2
xor edx, edx
jmp 0x5684e7
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 0x568290
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 0x568270
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