Function at 0x4311f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.00430f20
mov al, byte [ebp + 0xc]
mov byte [edi + 4], al
push 0
push 0x80
push 3
push 0
push 1
test al, al
je 0x431221
push SysReAllocString
jmp 0x431226
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, eax
mov dword [edi + 8], ecx
cmp ecx, 0xffffffff
jne 0x43124a
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push 0x110
lea eax, [edi + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [edi + 0x10c]
lea eax, [ecx - 0xa]
cmp eax, 1
ja 0x43123f
cmp ecx, 0xa
jle 0x4312c3
cmp byte [edi + 0x118], 1
je 0x43123f
mov ecx, dword [edi + 8]
cmp ecx, 0xffffffff
je 0x431328
mov eax, dword [edi + 0x114]
lea edx, [esp + 0x14]
push 0
push edx
push eax
push ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x431328
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x431328
mov edx, dword [edi + 8]
cmp edx, 0xffffffff
jne 0x4312d3
or eax, edx
mov dword [esp + 0x14], edx
jmp 0x431322
imul ecx, dword [edi + 0x110], 0x13c
xor eax, eax
push 2
neg ecx
mov dword [esp + 0x14], ecx
adc eax, eax
neg eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x43131a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x431316
or eax, 0xffffffff
or ecx, eax
jmp 0x43131e
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x14], ecx
mov dword [edi + 0x114], eax
mov esi, dword [edi + 0x110]
test esi, esi
je 0x43142b
mov eax, dword [edi + 0x2ac]
lea ebx, [edi + 0x2a8]
mov ecx, eax
mov dword [esp + 0xc], eax
sub ecx, dword [ebx]
mov eax, 0x67b23a55
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x10], eax
cmp esi, eax
jae 0x43136d
imul eax, esi, 0x13c
add eax, dword [ebx]
jmp 0x4313bb
jbe 0x4313be
mov ecx, dword [ebx + 8]
mov eax, 0x67b23a55
sub ecx, dword [ebx]
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jbe 0x431394
push ecx
push esi
mov ecx, ebx
call fcn.00433340
jmp 0x4313be
sub esi, dword [esp + 0x10]
je 0x4313b7
imul esi, esi, 0x13c
push esi
push 0
push dword [esp + 0x14]
call fcn.00690e10
mov eax, dword [esp + 0x18]
add esp, 0xc
add eax, esi
jmp 0x4313bb
mov eax, dword [esp + 0xc]
mov dword [ebx + 4], eax
mov ecx, dword [edi + 8]
cmp ecx, 0xffffffff
je 0x4313e9
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
imul eax, dword [edi + 0x110], 0x13c
push eax
push dword [ebx]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebx]
xor esi, esi
mov ecx, dword [ebx + 4]
sub ecx, eax
mov dword [esp + 0x10], eax
mov eax, 0x67b23a55
imul ecx
sar edx, 7
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
test ebx, ebx
jle 0x43142b
mov ecx, dword [esp + 0x10]
add ecx, 0x100
mov eax, dword [ecx]
cmp eax, dword [ecx + 8]
ja 0x43123f
inc esi
add ecx, 0x13c
cmp esi, ebx
jl 0x431415
lea ecx, [edi + 0x2b4]
call fcn.00432da0
mov ecx, dword [edi + 0x2ac]
mov eax, 0x67b23a55
sub ecx, dword [edi + 0x2a8]
xor esi, esi
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
test eax, eax
jle 0x43148a
nop dword [eax]
push esi
mov ecx, edi
call fcn.00431d50
mov ecx, dword [edi + 0x2ac]
mov eax, 0x67b23a55
sub ecx, dword [edi + 0x2a8]
inc esi
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jl 0x431460
cmp dword [edi + 8], 0xffffffff
je 0x4314a9
push 0x7726c0
lea eax, [edi + 0x11c]
push 0x104
push eax
call fcn.006a681f
add esp, 0xc
push dword [ebp + 8]
lea ecx, [edi + 0x220]
call fcn.0042b300
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8