Function at 0x56d570
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c6ea6
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x6fb05c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
mov dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x56d5db
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
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 4
lea ebx, [esi + 4]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x10]
push 0
lea edx, [ebp - 0x1c]
push edx
push 4
lea edi, [esi + 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [edi]
imul edi, dword [ebx]
xor ecx, ecx
mov eax, edi
mov edx, 0x2c
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.0059e028
add esp, 4
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x56d65e
push fcn.0056bab0
push 0x56ba80
push edi
mov dword [eax], edi
add eax, 4
push 0x2c
push eax
mov dword [ebp - 0x30], eax
call fcn.005a0ffc
mov eax, dword [ebp - 0x30]
jmp 0x56d660
xor eax, eax
cmp dword [esi + 8], 0
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0xc], eax
mov dword [ebp - 0x18], 0
jbe 0x56d6e2
cmp dword [ebx], 0
mov dword [ebp - 0x14], 0
jbe 0x56d6d6
mov eax, dword [ebp - 0x10]
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 2
lea edx, [ebp + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [ebx]
imul edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
add edi, eax
imul edi, edi, 0x2c
add edi, dword [esi + 0xc]
je 0x56d6ce
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x10]
mov ecx, edi
call eax
mov edx, dword [edi]
mov eax, dword [ebp - 0x18]
mov edx, dword [edx + 0x18]
push eax
mov ecx, edi
call edx
mov ax, word [ebp + 8]
mov word [edi + 0x1c], ax
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, dword [ebx]
jb 0x56d683
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp eax, dword [esi + 8]
jb 0x56d677
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esi + 0xc]
mov ebx, dword [ebx]
mov edi, dword [esi + 8]
mov dword [esi + 0x2c], edx
mov eax, 0xaaaaaaab
mul ebx
mov ecx, edx
mov eax, 0xaaaaaaab
mul edi
shr ecx, 1
shr edx, 1
mov dword [esi + 0x1c], edx
imul edx, ecx
mov dword [esi + 0x18], ecx
mov dword [esi + 0x14], edi
mov edi, edx
xor ecx, ecx
mov eax, edi
mov edx, 0x2c
mul edx
seto cl
mov dword [esi + 0x10], ebx
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.0059e028
add esp, 4
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x56d76b
push fcn.0056bab0
push 0x56ba80
push edi
lea ebx, [eax + 4]
push 0x2c
push ebx
mov dword [eax], edi
call fcn.005a0ffc
jmp 0x56d76d
xor ebx, ebx
cmp dword [esi + 0x1c], 0
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x30], ebx
mov dword [ebp - 0x18], 0
jbe 0x56d9cd
mov dword [ebp - 0x10], 2
cmp dword [esi + 0x18], 0
mov dword [ebp - 0x14], 0
jbe 0x56d9b9
mov edi, 2
mov eax, dword [ebp - 0x10]
add eax, 0xfffffffe
push eax
lea ebx, [edi - 2]
push ebx
mov ecx, esi
call fcn.0056c940
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffffe
mov dword [ebp - 0x34], eax
push ecx
lea eax, [edi - 1]
push eax
mov ecx, esi
call fcn.0056c940
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffffe
push eax
push edi
call fcn.0056c940
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x10]
dec eax
push eax
push ebx
call fcn.0056c940
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
dec eax
push eax
lea eax, [edi - 1]
push eax
call fcn.0056c940
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
dec eax
push eax
push edi
call fcn.0056c940
mov ecx, dword [ebp - 0x10]
push ecx
push ebx
mov ecx, esi
mov dword [ebp - 0x28], eax
call fcn.0056c940
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
push ebx
lea eax, [edi - 1]
push eax
call fcn.0056c940
push ebx
push edi
mov dword [ebp - 0x30], eax
call fcn.0056c940
mov ebx, eax
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x56d9a6
mov edx, dword [ebp - 0x38]
test edx, edx
je 0x56d9a6
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x56d9a6
cmp dword [ebp - 0x20], 0
je 0x56d9a6
cmp dword [ebp - 0x24], 0
je 0x56d9a6
cmp dword [ebp - 0x28], 0
je 0x56d9a6
cmp dword [ebp - 0x2c], 0
je 0x56d9a6
cmp dword [ebp - 0x30], 0
je 0x56d9a6
test ebx, ebx
je 0x56d9a6
cmp byte [eax + 0x1c], 1
je 0x56d95a
cmp byte [eax + 0x1d], 0
jne 0x56d95a
cmp byte [edx + 0x1c], 1
je 0x56d95a
cmp byte [edx + 0x1d], 0
jne 0x56d95a
call fcn.00567e70
test eax, eax
jne 0x56d95a
mov ecx, dword [ebp - 0x20]
call fcn.00567e70
test eax, eax
jne 0x56d95a
mov ecx, dword [ebp - 0x24]
call fcn.00567e70
test eax, eax
jne 0x56d95a
mov ecx, dword [ebp - 0x28]
call fcn.00567e70
test eax, eax
jne 0x56d95a
mov ecx, dword [ebp - 0x2c]
call fcn.00567e70
test eax, eax
jne 0x56d95a
mov ecx, dword [ebp - 0x30]
call fcn.00567e70
test eax, eax
jne 0x56d95a
mov ecx, ebx
call fcn.00567e70
test eax, eax
jne 0x56d95a
mov edx, dword [esi + 0x18]
imul edx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
mov eax, dword [esi + 0x30]
add edx, ebx
imul edx, edx, 0x2c
xor ecx, ecx
mov word [edx + eax + 0x1c], cx
mov ecx, dword [esi + 0x18]
imul ecx, dword [ebp - 0x18]
add ecx, ebx
imul ecx, ecx, 0x2c
add ecx, dword [esi + 0x30]
push ebx
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [esi + 0x18]
imul ecx, eax
add ecx, ebx
imul ecx, ecx, 0x2c
add ecx, dword [esi + 0x30]
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
call eax
jmp 0x56d9a9
mov ecx, dword [esi + 0x18]
mov ebx, dword [ebp - 0x18]
mov edx, dword [esi + 0x30]
imul ecx, ebx
add ecx, dword [ebp - 0x14]
mov eax, 1
imul ecx, ecx, 0x2c
mov word [ecx + edx + 0x1c], ax
mov ecx, dword [esi + 0x18]
mov eax, dword [ebp - 0x14]
imul ecx, ebx
add ecx, eax
imul ecx, ecx, 0x2c
add ecx, dword [esi + 0x30]
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
mov ecx, dword [esi + 0x18]
imul ecx, ebx
add ecx, dword [ebp - 0x14]
push ebx
imul ecx, ecx, 0x2c
add ecx, dword [esi + 0x30]
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
call edx
mov ebx, dword [ebp - 0x14]
inc ebx
add edi, 3
mov dword [ebp - 0x14], ebx
cmp ebx, dword [esi + 0x18]
jb 0x56d7a5
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], 3
inc eax
mov dword [ebp - 0x18], eax
cmp eax, dword [esi + 0x1c]
jb 0x56d78f
mov eax, 1
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