Function at 0x101488a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1028f2e1
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x10314008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
push ecx
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov dword [ebp - 0xe0], edi
call fcn.1014a720
mov eax, dword [esi]
add esp, 4
mov dword [esi + 4], eax
mov ecx, ebx
mov byte [edi], 0
cmp dword [ebx + 0x14], 8
jb 0x101488fd
mov ecx, dword [ebx]
push ecx
push 0x80
push 3
push ecx
push 0
mov edx, SysReAllocString
call fcn.10101280
mov edi, eax
add esp, 0x14
cmp edi, 0xffffffff
je 0x10148a85
test edi, edi
je 0x10148a85
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ecx
lea ecx, [ebp - 0x38]
call fcn.1006bb20
call fcn.1006fff0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xec]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0xdc]
movlpd qword [ebp - 0xdc], xmm0
push eax
push ebx
movlpd qword [ebp - 0xec], xmm0
movlpd qword [ebp - 0x2c], xmm0
call fcn.10149020
test al, al
je 0x10148a04
mov ebx, dword [ebp - 0xdc]
mov ecx, ebx
mov eax, dword [ebp - 0xd8]
add ecx, 0xffffffff
adc eax, 0xffffffff
test eax, eax
ja 0x10148a04
jb 0x101489a4
cmp ecx, 0x4ffffe
ja 0x10148a04
lea eax, [ebp - 0xcd]
mov byte [ebp - 0xcd], 0
push eax
push ebx
lea ecx, [ebp - 0x38]
call fcn.100a4850
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x28], 0
call fcn.100706b0
push 0
lea ecx, [ebp - 0x28]
push ecx
mov eax, dword [eax]
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x28]
xor ecx, ecx
cmp ecx, dword [ebp - 0xd8]
ja 0x10148a04
jb 0x101489ee
cmp eax, ebx
jae 0x10148a04
mov byte [ebp - 0xcd], cl
lea ecx, [ebp - 0xcd]
push ecx
push eax
lea ecx, [ebp - 0x38]
call fcn.100a4850
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x38]
call fcn.100706a0
mov edx, eax
call fcn.10070690
mov ecx, dword [edx]
cmp ecx, dword [eax]
je 0x10148a76
push ecx
lea ecx, [ebp - 0x44]
call fcn.1006bb20
call fcn.1006fff0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xcc]
call fcn.10258db0
lea ecx, [ebp - 0x38]
call fcn.100706b0
mov edx, dword [eax]
lea eax, [ebp - 0x44]
push eax
call fcn.1006ff60
push eax
push edx
lea ecx, [ebp - 0xcc]
call fcn.10258fe0
test al, al
jne 0x10148aa5
mov eax, dword [ebp - 0xe0]
mov byte [eax], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.1006ff70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.1006ff70
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1025b3e6
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp - 0x44]
call fcn.1006ff60
xor edx, edx
mov ecx, 0x3e8
div ecx
test edx, edx
jne 0x10148a61
lea ecx, [ebp - 0x44]
call fcn.1006ff60
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
mov edi, edx
shr edi, 6
mov dword [ebp - 0xd8], edi
test edi, edi
je 0x10148e4f
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x20]
push eax
push edi
mov ecx, eax
call fcn.1014a070
lea ecx, [ebp - 0x44]
call fcn.100706b0
mov ecx, dword [eax]
imul eax, edi, 0x3e8
push eax
push ecx
push dword [ebp - 0x20]
call sub.VCRUNTIME140.dll_memcpy
mov ebx, dword [ebp - 0x20]
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov eax, 0x10624dd3
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
sub ecx, ebx
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x10148ba1
xor edi, edi
cmp dword [ebx + edi], 0x23ab45db
jne 0x10148bcd
inc dword [ebp - 0x28]
xor eax, eax
mov word [ebx + edi + 0x282], ax
mov word [ebx + edi + 0x382], ax
mov word [ebx + edi + 0x3ca], ax
mov eax, 0x10624dd3
mov ecx, dword [ebp - 0x1c]
add edi, 0x3e8
mov ebx, dword [ebp - 0x20]
sub ecx, ebx
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x28], eax
jb 0x10148b51
mov edi, dword [ebp - 0xd8]
mov ecx, dword [esi + 8]
mov eax, 0x4ec4ec4f
sub ecx, dword [esi]
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jbe 0x10148c4d
cmp edi, 0x2762762
ja 0x10148e71
jmp 0x10148c45
mov eax, dword [ebp - 0xe0]
mov byte [eax], 1
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x10148a6a
mov ecx, dword [ebp - 0x18]
mov eax, 0x10624dd3
sub ecx, esi
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
imul ecx, eax, 0x3e8
mov eax, esi
cmp ecx, 0x1000
jb 0x10148c21
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10148c21
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.1025b427
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
jmp 0x10148a6a
push edi
mov ecx, esi
call fcn.10149b20
lea ecx, [ebp - 0xac]
call fcn.101467d0
mov byte [ebp - 4], 3
xor ecx, ecx
mov edi, dword [ebp - 0x20]
mov eax, 0x10624dd3
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp - 0x1c]
sub ecx, edi
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x10148db6
xor ebx, ebx
mov dword [ebp - 0xd8], ebx
lea edx, [ebx + 4]
add edx, edi
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10148c92
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xac]
call fcn.10004d70
mov ebx, dword [ebp - 0xd8]
lea edx, [ebx + 0x284]
add edx, edi
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0xd8], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10148cc7
sub ecx, dword [ebp - 0xd8]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x94]
call fcn.10004d70
mov eax, dword [edi + ebx + 0x3cc]
lea edx, [ebx + 0x384]
mov dword [ebp - 0x64], eax
add edx, edi
mov eax, dword [edi + ebx + 0x3d0]
mov ecx, edx
mov dword [ebp - 0x60], eax
mov eax, dword [edi + ebx + 0x3d4]
mov dword [ebp - 0x5c], eax
mov eax, dword [edi + ebx + 0x3d8]
mov dword [ebp - 0x58], eax
mov eax, dword [edi + ebx + 0x3dc]
mov dword [ebp - 0x54], eax
mov eax, dword [edi + ebx + 0x3e0]
mov dword [ebp - 0x50], eax
lea eax, [ecx + 2]
mov dword [ebp - 0xd8], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10148d36
sub ecx, dword [ebp - 0xd8]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x7c]
call fcn.10004d70
mov eax, dword [edi + ebx + 0x3e4]
lea ecx, [ebp - 0xac]
mov dword [ebp - 0x4c], eax
mov eax, dword [esi + 4]
mov byte [ebp - 0x48], 0
push ecx
cmp dword [esi + 8], eax
je 0x10148d7d
mov ecx, eax
call fcn.10147560
add dword [esi + 4], 0x68
jmp 0x10148d85
push eax
mov ecx, esi
call fcn.1014a4a0
mov ecx, dword [ebp - 0x1c]
mov eax, 0x10624dd3
mov edi, dword [ebp - 0x20]
add ebx, 0x3e8
inc dword [ebp - 0x28]
sub ecx, edi
imul ecx
mov dword [ebp - 0xd8], ebx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x28], eax
jb 0x10148c88
mov eax, dword [ebp - 0xe0]
mov byte [eax], 0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x7c]
call fcn.10004cc0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x94]
call fcn.10004cc0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xac]
call fcn.10004cc0
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x10148e4f
mov ecx, dword [ebp - 0x18]
mov eax, 0x10624dd3
sub ecx, esi
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
imul ecx, eax, 0x3e8
mov eax, esi
cmp ecx, 0x1000
jb 0x10148e30
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10148e30
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.1025b427
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.1006ff70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.1006ff70
mov al, 1
jmp 0x10148a87
call fcn.10149a30
int3