Function at 0x56d250
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c6916
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x6f405c]
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 0x56d2bb
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, 0x28
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.0059daa8
add esp, 4
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x56d33e
push fcn.0056b6f0
push 0x56b6c0
push edi
mov dword [eax], edi
add eax, 4
push 0x28
push eax
mov dword [ebp - 0x30], eax
call fcn.005a0a7c
mov eax, dword [ebp - 0x30]
jmp 0x56d340
xor eax, eax
cmp dword [esi + 8], 0
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0xc], eax
mov dword [ebp - 0x14], 0
jbe 0x56d3c8
cmp dword [ebx], 0
mov dword [ebp - 0x18], 0
jbe 0x56d3bc
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 eax, dword [ebx]
imul eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x18]
mov edx, dword [esi + 0xc]
lea ecx, [eax + eax*4]
lea edi, [edx + ecx*8]
test edi, edi
je 0x56d3b1
mov ecx, dword [ebp - 0x18]
mov eax, dword [edi]
mov edx, dword [eax + 0x10]
push ecx
mov ecx, edi
call edx
mov ecx, dword [ebp - 0x14]
mov eax, dword [edi]
mov edx, dword [eax + 0x18]
push ecx
mov ecx, edi
call edx
mov ax, word [ebp + 8]
mov word [edi + 0x1c], ax
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp eax, dword [ebx]
jb 0x56d363
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, dword [esi + 8]
jb 0x56d357
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, 0x28
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.0059daa8
add esp, 4
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x56d451
push fcn.0056b6f0
push 0x56b6c0
push edi
lea ebx, [eax + 4]
push 0x28
push ebx
mov dword [eax], edi
call fcn.005a0a7c
jmp 0x56d453
xor ebx, ebx
cmp dword [esi + 0x1c], 0
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x30], ebx
mov dword [ebp - 0x18], 0
jbe 0x56d6d0
mov dword [ebp - 0x10], 2
cmp dword [esi + 0x18], 0
mov dword [ebp - 0x14], 0
jbe 0x56d6bc
mov edi, 2
mov eax, dword [ebp - 0x10]
add eax, 0xfffffffe
push eax
lea ebx, [edi - 2]
push ebx
mov ecx, esi
call fcn.0056c590
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.0056c590
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffffe
push eax
push edi
mov ecx, esi
call fcn.0056c590
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x10]
dec eax
push eax
push ebx
mov ecx, esi
call fcn.0056c590
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
dec eax
push eax
lea eax, [edi - 1]
push eax
mov ecx, esi
call fcn.0056c590
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
dec eax
push eax
push edi
mov ecx, esi
call fcn.0056c590
mov ecx, dword [ebp - 0x10]
push ecx
push ebx
mov ecx, esi
mov dword [ebp - 0x28], eax
call fcn.0056c590
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
push ebx
lea eax, [edi - 1]
push eax
mov ecx, esi
call fcn.0056c590
push ebx
push edi
mov ecx, esi
mov dword [ebp - 0x30], eax
call fcn.0056c590
mov ebx, eax
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x56d6a9
mov edx, dword [ebp - 0x38]
test edx, edx
je 0x56d6a9
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x56d6a9
cmp dword [ebp - 0x20], 0
je 0x56d6a9
cmp dword [ebp - 0x24], 0
je 0x56d6a9
cmp dword [ebp - 0x28], 0
je 0x56d6a9
cmp dword [ebp - 0x2c], 0
je 0x56d6a9
cmp dword [ebp - 0x30], 0
je 0x56d6a9
test ebx, ebx
je 0x56d6a9
cmp byte [eax + 0x1c], 1
je 0x56d656
cmp byte [eax + 0x1d], 0
jne 0x56d656
cmp byte [edx + 0x1c], 1
je 0x56d656
cmp byte [edx + 0x1d], 0
jne 0x56d656
call fcn.00567af0
test eax, eax
jne 0x56d656
mov ecx, dword [ebp - 0x20]
call fcn.00567af0
test eax, eax
jne 0x56d656
mov ecx, dword [ebp - 0x24]
call fcn.00567af0
test eax, eax
jne 0x56d656
mov ecx, dword [ebp - 0x28]
call fcn.00567af0
test eax, eax
jne 0x56d656
mov ecx, dword [ebp - 0x2c]
call fcn.00567af0
test eax, eax
jne 0x56d656
mov ecx, dword [ebp - 0x30]
call fcn.00567af0
test eax, eax
jne 0x56d656
mov ecx, ebx
call fcn.00567af0
test eax, eax
jne 0x56d656
mov eax, dword [esi + 0x18]
imul eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
add eax, ebx
lea edx, [eax + eax*4]
mov eax, dword [esi + 0x30]
xor ecx, ecx
mov word [eax + edx*8 + 0x1c], cx
mov eax, dword [esi + 0x18]
imul eax, dword [ebp - 0x18]
add eax, ebx
lea edx, [eax + eax*4]
mov eax, dword [esi + 0x30]
lea ecx, [eax + edx*8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
push ebx
call eax
mov edx, dword [ebp - 0x18]
mov eax, dword [esi + 0x18]
imul eax, edx
add eax, ebx
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x30]
lea ecx, [eax + ecx*8]
mov eax, dword [ecx]
push edx
mov edx, dword [eax + 0x18]
call edx
jmp 0x56d6ac
mov eax, dword [esi + 0x18]
mov ebx, dword [ebp - 0x18]
mov ecx, dword [esi + 0x30]
imul eax, ebx
add eax, dword [ebp - 0x14]
mov edx, 1
lea eax, [eax + eax*4]
mov word [ecx + eax*8 + 0x1c], dx
mov eax, dword [esi + 0x18]
mov edx, dword [ebp - 0x14]
imul eax, ebx
mov ecx, dword [esi + 0x30]
add eax, edx
lea eax, [eax + eax*4]
lea ecx, [ecx + eax*8]
mov eax, dword [ecx]
push edx
mov edx, dword [eax + 0x10]
call edx
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x30]
imul eax, ebx
add eax, dword [ebp - 0x14]
push ebx
lea eax, [eax + eax*4]
mov edx, dword [ecx + eax*8]
lea ecx, [ecx + eax*8]
mov eax, dword [edx + 0x18]
call eax
mov ebx, dword [ebp - 0x14]
inc ebx
add edi, 3
mov dword [ebp - 0x14], ebx
cmp ebx, dword [esi + 0x18]
jb 0x56d48b
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], 3
inc eax
mov dword [ebp - 0x18], eax
cmp eax, dword [esi + 0x1c]
jb 0x56d475
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