Function at 0x53c020
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x2c
mov eax, dword [esp + 0x30]
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
mov esi, ecx
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [esp + 8], edi
cmp edi, 0xffffffff
jne 0x53c061
pop edi
xor eax, eax
pop esi
add esp, 0x2c
ret 4
push ebx
push ebp
push 0
lea ecx, [esp + 0x20]
push ecx
push 4
lea ebp, [esi + 4]
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea edx, [esp + 0x20]
push edx
push 4
lea ebx, [esi + 8]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [ebx]
imul ebx, dword [ebp]
xor ecx, ecx
mov eax, ebx
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.00564fc8
add esp, 4
test eax, eax
je 0x53c0e7
mov dword [eax], ebx
add eax, 4
dec ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], eax
js 0x53c0e9
lea esp, [esp]
mov ecx, dword [esp + 0x18]
call fcn.0053a4c0
add dword [esp + 0x18], 0x28
dec ebx
jns 0x53c0d0
mov eax, dword [esp + 0x2c]
jmp 0x53c0e9
xor eax, eax
cmp dword [esi + 8], 0
mov dword [esi + 0xc], eax
mov dword [esp + 0x14], 0
jbe 0x53c16c
lea ebx, [ebx]
xor ebx, ebx
cmp dword [ebp], ebx
jbe 0x53c15e
push 0
lea ecx, [esp + 0x20]
push ecx
push 2
lea edx, [esp + 0x4c]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp]
imul eax, dword [esp + 0x14]
mov ecx, dword [esi + 0xc]
add eax, ebx
lea eax, [eax + eax*4]
lea edi, [ecx + eax*8]
test edi, edi
je 0x53c154
mov edx, dword [edi]
mov eax, dword [edx + 0x10]
push ebx
mov ecx, edi
call eax
mov edx, dword [edi]
mov eax, dword [esp + 0x14]
mov edx, dword [edx + 0x18]
push eax
mov ecx, edi
call edx
mov ax, word [esp + 0x40]
mov word [edi + 0x1c], ax
mov edi, dword [esp + 0x10]
inc ebx
cmp ebx, dword [ebp]
jb 0x53c107
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esi + 8]
jb 0x53c100
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, dword [ebp]
mov ecx, dword [esi + 0xc]
mov edi, dword [esi + 8]
mov eax, 0xaaaaaaab
mul ebp
mov dword [esi + 0x2c], ecx
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], ebp
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.00564fc8
add esp, 4
test eax, eax
je 0x53c1ef
mov dword [eax], edi
dec edi
lea ebp, [eax + 4]
mov ebx, ebp
js 0x53c1f1
lea esp, [esp]
mov ecx, ebx
call fcn.0053a4c0
add ebx, 0x28
dec edi
jns 0x53c1e0
jmp 0x53c1f1
xor ebp, ebp
cmp dword [esi + 0x1c], 0
mov dword [esi + 0x30], ebp
mov dword [esp + 0x18], 0
jbe 0x53c483
mov dword [esp + 0x10], 2
mov edi, edi
cmp dword [esi + 0x18], 0
mov dword [esp + 0x14], 0
jbe 0x53c46c
mov edi, 2
mov eax, dword [esp + 0x10]
add eax, 0xfffffffe
push eax
lea ebp, [edi - 2]
push ebp
mov ecx, esi
call fcn.0053b2c0
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffffe
push eax
lea ebx, [edi - 1]
push ebx
mov ecx, esi
call fcn.0053b2c0
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffffe
push eax
push edi
mov ecx, esi
call fcn.0053b2c0
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x10]
dec eax
push eax
push ebp
mov ecx, esi
call fcn.0053b2c0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
dec eax
push eax
push ebx
mov ecx, esi
call fcn.0053b2c0
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x10]
dec eax
push eax
push edi
mov ecx, esi
call fcn.0053b2c0
mov ecx, dword [esp + 0x10]
push ecx
push ebp
mov ecx, esi
mov dword [esp + 0x30], eax
call fcn.0053b2c0
mov ebp, dword [esp + 0x10]
push ebp
push ebx
mov ecx, esi
mov dword [esp + 0x34], eax
call fcn.0053b2c0
push ebp
push edi
mov ecx, esi
mov ebx, eax
call fcn.0053b2c0
mov ebp, eax
mov eax, dword [esp + 0x30]
test eax, eax
je 0x53c457
mov edx, dword [esp + 0x34]
test edx, edx
je 0x53c457
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x53c457
cmp dword [esp + 0x20], 0
je 0x53c457
cmp dword [esp + 0x24], 0
je 0x53c457
cmp dword [esp + 0x28], 0
je 0x53c457
cmp dword [esp + 0x2c], 0
je 0x53c457
test ebx, ebx
je 0x53c457
test ebp, ebp
je 0x53c457
cmp byte [eax + 0x1c], 1
je 0x53c403
cmp byte [eax + 0x1d], 0
jne 0x53c403
cmp byte [edx + 0x1c], 1
je 0x53c403
cmp byte [edx + 0x1d], 0
jne 0x53c403
call fcn.00536b50
test eax, eax
jne 0x53c403
mov ecx, dword [esp + 0x20]
call fcn.00536b50
test eax, eax
jne 0x53c403
mov ecx, dword [esp + 0x24]
call fcn.00536b50
test eax, eax
jne 0x53c403
mov ecx, dword [esp + 0x28]
call fcn.00536b50
test eax, eax
jne 0x53c403
mov ecx, dword [esp + 0x2c]
call fcn.00536b50
test eax, eax
jne 0x53c403
mov ecx, ebx
call fcn.00536b50
test eax, eax
jne 0x53c403
mov ecx, ebp
call fcn.00536b50
test eax, eax
jne 0x53c403
mov eax, dword [esi + 0x18]
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
imul eax, ebp
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, ebp
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 eax, dword [esi + 0x18]
mov edx, dword [esi + 0x30]
imul eax, ebp
add eax, ebx
lea ecx, [eax + eax*4]
mov eax, dword [edx + ecx*8]
lea ecx, [edx + ecx*8]
mov edx, dword [eax + 0x18]
push ebp
call edx
jmp 0x53c45b
mov eax, dword [esi + 0x18]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
imul eax, ebx
mov ecx, dword [esi + 0x30]
add eax, ebp
lea eax, [eax + eax*4]
mov edx, 1
mov word [ecx + eax*8 + 0x1c], dx
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x30]
imul eax, ebx
add eax, ebp
lea eax, [eax + eax*4]
mov edx, dword [ecx + eax*8]
lea ecx, [ecx + eax*8]
mov eax, dword [edx + 0x10]
push ebp
call eax
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x30]
imul eax, ebx
add eax, ebp
lea ecx, [eax + eax*4]
mov eax, dword [edx + ecx*8]
lea ecx, [edx + ecx*8]
mov edx, dword [eax + 0x18]
push ebx
call edx
mov ebx, dword [esp + 0x14]
inc ebx
add edi, 3
mov dword [esp + 0x14], ebx
cmp ebx, dword [esi + 0x18]
jb 0x53c227
mov eax, dword [esp + 0x18]
add dword [esp + 0x10], 3
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esi + 0x1c]
jb 0x53c210
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 0x2c
ret 4