Function at 0x53b900
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 0x53b941
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, 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.00564bf8
add esp, 4
test eax, eax
je 0x53b9c7
mov dword [eax], ebx
add eax, 4
dec ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], eax
js 0x53b9c9
lea esp, [esp]
mov ecx, dword [esp + 0x18]
call fcn.00539e50
add dword [esp + 0x18], 0x2c
dec ebx
jns 0x53b9b0
mov eax, dword [esp + 0x2c]
jmp 0x53b9c9
xor eax, eax
cmp dword [esi + 8], 0
mov dword [esi + 0xc], eax
mov dword [esp + 0x14], 0
jbe 0x53ba47
lea ebx, [ebx]
xor ebx, ebx
cmp dword [ebp], ebx
jbe 0x53ba39
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 edi, dword [ebp]
imul edi, dword [esp + 0x14]
add edi, ebx
imul edi, edi, 0x2c
add edi, dword [esi + 0xc]
je 0x53ba2f
mov eax, dword [edi]
mov edx, dword [eax + 0x10]
push ebx
mov ecx, edi
call edx
mov ecx, dword [esp + 0x14]
mov eax, dword [edi]
mov edx, dword [eax + 0x18]
push ecx
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 0x53b9e7
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esi + 8]
jb 0x53b9e0
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, 0x2c
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.00564bf8
add esp, 4
test eax, eax
je 0x53bac3
mov dword [eax], edi
dec edi
lea ebp, [eax + 4]
mov ebx, ebp
js 0x53bac5
mov ecx, ebx
call fcn.00539e50
add ebx, 0x2c
dec edi
jns 0x53bab4
jmp 0x53bac5
xor ebp, ebp
cmp dword [esi + 0x1c], 0
mov dword [esi + 0x30], ebp
mov dword [esp + 0x18], 0
jbe 0x53bd3e
mov dword [esp + 0x10], 2
cmp dword [esi + 0x18], 0
mov dword [esp + 0x14], 0
jbe 0x53bd27
mov edi, 2
lea esp, [esp]
mov eax, dword [esp + 0x10]
add eax, 0xfffffffe
push eax
lea ebp, [edi - 2]
push ebp
mov ecx, esi
call fcn.0053ac50
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffffe
push eax
lea ebx, [edi - 1]
push ebx
call fcn.0053ac50
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffffe
push eax
push edi
call fcn.0053ac50
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x10]
dec eax
push eax
push ebp
call fcn.0053ac50
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
dec eax
push eax
push ebx
call fcn.0053ac50
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x10]
dec eax
push eax
push edi
call fcn.0053ac50
mov ecx, dword [esp + 0x10]
push ecx
push ebp
mov ecx, esi
mov dword [esp + 0x30], eax
call fcn.0053ac50
mov ebp, dword [esp + 0x10]
push ebp
push ebx
mov dword [esp + 0x34], eax
call fcn.0053ac50
push ebp
push edi
mov ebx, eax
call fcn.0053ac50
mov ebp, eax
mov eax, dword [esp + 0x30]
test eax, eax
je 0x53bd12
mov edx, dword [esp + 0x34]
test edx, edx
je 0x53bd12
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x53bd12
cmp dword [esp + 0x20], 0
je 0x53bd12
cmp dword [esp + 0x24], 0
je 0x53bd12
cmp dword [esp + 0x28], 0
je 0x53bd12
cmp dword [esp + 0x2c], 0
je 0x53bd12
test ebx, ebx
je 0x53bd12
test ebp, ebp
je 0x53bd12
cmp byte [eax + 0x1c], 1
je 0x53bcc3
cmp byte [eax + 0x1d], 0
jne 0x53bcc3
cmp byte [edx + 0x1c], 1
je 0x53bcc3
cmp byte [edx + 0x1d], 0
jne 0x53bcc3
call fcn.005365b0
test eax, eax
jne 0x53bcc3
mov ecx, dword [esp + 0x20]
call fcn.005365b0
test eax, eax
jne 0x53bcc3
mov ecx, dword [esp + 0x24]
call fcn.005365b0
test eax, eax
jne 0x53bcc3
mov ecx, dword [esp + 0x28]
call fcn.005365b0
test eax, eax
jne 0x53bcc3
mov ecx, dword [esp + 0x2c]
call fcn.005365b0
test eax, eax
jne 0x53bcc3
mov ecx, ebx
call fcn.005365b0
test eax, eax
jne 0x53bcc3
mov ecx, ebp
call fcn.005365b0
test eax, eax
jne 0x53bcc3
mov edx, dword [esi + 0x18]
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
imul edx, ebp
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, ebp
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 ecx, dword [esi + 0x18]
imul ecx, ebp
add ecx, ebx
imul ecx, ecx, 0x2c
add ecx, dword [esi + 0x30]
push ebp
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
call edx
jmp 0x53bd16
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
imul eax, eax, 0x2c
mov edx, 1
mov word [eax + ecx + 0x1c], dx
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x30]
imul eax, ebx
add eax, ebp
imul eax, eax, 0x2c
mov edx, dword [ecx + eax]
add ecx, eax
mov eax, dword [edx + 0x10]
push ebp
call eax
mov ecx, dword [esi + 0x18]
imul ecx, ebx
add ecx, ebp
imul ecx, ecx, 0x2c
add ecx, dword [esi + 0x30]
push ebx
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
call edx
mov ebx, dword [esp + 0x14]
inc ebx
add edi, 3
mov dword [esp + 0x14], ebx
cmp ebx, dword [esi + 0x18]
jb 0x53bb00
mov eax, dword [esp + 0x18]
add dword [esp + 0x10], 3
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esi + 0x1c]
jb 0x53bae2
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 0x2c
ret 4