Function at 0x56e7a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b2d36
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x695e80]
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 0x56e80c
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.00584c9a
add esp, 4
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x56e886
push fcn.0056b750
push 0x56b700
push esi
lea edi, [eax + 4]
mov dword [eax], esi
push 0x28
push edi
call fcn.00586cd0
jmp 0x56e888
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 0x56e8fd
lea esp, [esp]
xor edi, edi
cmp dword [ebx + 4], edi
jbe 0x56e8f4
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 0x56e8eb
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 0x56e8a7
inc esi
mov dword [ebp - 0x18], esi
cmp esi, dword [ebx + 8]
jb 0x56e8a0
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.00584c9a
add esp, 4
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x56e986
push fcn.0056b750
push 0x56b700
push esi
lea edi, [eax + 4]
mov dword [eax], esi
push 0x28
push edi
call fcn.00586cd0
jmp 0x56e988
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 0x56eca1
xor edx, edx
mov dword [ebp - 0x18], edx
jmp 0x56e9b0
cmp dword [ebx + 0x18], 0
mov dword [ebp - 0x1c], 0
jbe 0x56ec89
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 0x56e9f9
cmp edx, dword [ebx + 8]
jae 0x56e9f9
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 0x56ea00
mov dword [ebp - 0x38], 0
lea ecx, [esi - 1]
cmp ecx, eax
jae 0x56ea27
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebx + 8]
jae 0x56ea27
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 0x56ea2e
mov dword [ebp - 0x3c], 0
cmp esi, eax
jae 0x56ea51
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebx + 8]
jae 0x56ea51
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 0x56ea58
mov dword [ebp - 0x24], 0
cmp edi, eax
jae 0x56ea7f
mov edx, dword [ebp - 0x14]
dec edx
cmp edx, dword [ebx + 8]
jae 0x56ea7f
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 0x56ea86
mov dword [ebp - 0x28], 0
lea ecx, [esi - 1]
cmp ecx, eax
jae 0x56eaae
mov edx, dword [ebp - 0x14]
dec edx
cmp edx, dword [ebx + 8]
jae 0x56eaae
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 0x56eab5
mov dword [ebp - 0x2c], 0
cmp esi, eax
jae 0x56ead9
mov edx, dword [ebp - 0x14]
dec edx
cmp edx, dword [ebx + 8]
jae 0x56ead9
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 0x56eae0
mov dword [ebp - 0x30], 0
cmp edi, eax
lea edi, [ebx + 8]
jae 0x56eb08
mov edx, dword [ebp - 0x14]
cmp edx, dword [edi]
jae 0x56eb08
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 0x56eb0f
mov dword [ebp - 0x34], 0
lea ecx, [esi - 1]
cmp ecx, eax
jae 0x56eb37
mov edx, dword [ebp - 0x14]
cmp edx, dword [edi]
jae 0x56eb37
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 0x56eb3c
xor edx, edx
mov dword [ebp - 0x40], edx
cmp esi, eax
jae 0x56eb59
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [edi]
jae 0x56eb59
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 0x56eb5b
xor edi, edi
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x56ec70
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x56ec70
cmp dword [ebp - 0x24], 0
je 0x56ec70
cmp dword [ebp - 0x28], 0
je 0x56ec70
cmp dword [ebp - 0x2c], 0
je 0x56ec70
cmp dword [ebp - 0x30], 0
je 0x56ec70
cmp dword [ebp - 0x34], 0
je 0x56ec70
test edx, edx
je 0x56ec70
test edi, edi
je 0x56ec70
cmp byte [ecx + 0x1c], 1
je 0x56ec22
cmp byte [ecx + 0x1d], 0
jne 0x56ec22
cmp byte [eax + 0x1c], 1
je 0x56ec22
cmp byte [eax + 0x1d], 0
jne 0x56ec22
mov ecx, dword [ebp - 0x24]
call fcn.00501b40
test eax, eax
jne 0x56ec22
mov ecx, dword [ebp - 0x28]
call fcn.00501b40
test eax, eax
jne 0x56ec22
mov ecx, dword [ebp - 0x2c]
call fcn.00501b40
test eax, eax
jne 0x56ec22
mov ecx, dword [ebp - 0x30]
call fcn.00501b40
test eax, eax
jne 0x56ec22
mov ecx, dword [ebp - 0x34]
call fcn.00501b40
test eax, eax
jne 0x56ec22
mov ecx, dword [ebp - 0x40]
call fcn.00501b40
test eax, eax
jne 0x56ec22
mov ecx, edi
call fcn.00501b40
test eax, eax
jne 0x56ec22
xor edx, edx
jmp 0x56ec27
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 0x56e9d0
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 0x56e9b0
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