Function at 0x1009f090
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10199b95
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x101f6e00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x44], eax
mov esi, dword [ebp + 8]
push esi
mov dword [ebp - 0x4c], esi
call fcn.10090d70
test al, al
je 0x1009f54b
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x38]
push 0
push eax
push 4
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push eax
push esi
call edi
mov edi, dword [ebp - 0x34]
test edi, edi
jle 0x1009f311
mov dword [ebp - 0x2c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
cmp edi, 0x7fffffff
ja 0x1009f568
lea eax, [ebp - 0x2d]
push 8
mov dword [ebp - 0x50], eax
call fcn.1013ca30
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x54], eax
add esp, 4
mov dword [eax], ecx
mov dword [eax + 4], 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0
cmp edi, 0xf
ja 0x1009f170
push edi
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], edi
push 0x3f
push eax
mov dword [ebp - 0x14], 0xf
call fcn.1013f8f0
add esp, 0xc
mov byte [ebp + edi - 0x28], 0
jmp 0x1009f1b9
mov eax, edi
or eax, 0xf
cmp eax, 0x7fffffff
jbe 0x1009f183
mov eax, 0x7fffffff
jmp 0x1009f18e
cmp eax, 0x16
mov ecx, 0x16
cmovb eax, ecx
mov dword [ebp - 0x3c], eax
inc eax
push eax
call fcn.100490d0
mov esi, eax
mov dword [ebp - 0x18], edi
mov eax, dword [ebp - 0x3c]
push edi
push 0x3f
push esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x14], eax
call fcn.1013f8f0
mov byte [esi + edi], 0
add esp, 0x10
mov esi, dword [ebp - 0x4c]
mov dword [ebp - 0x54], 0
push 0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x38]
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
cmova eax, dword [ebp - 0x28]
push ecx
push dword [ebp - 0x34]
push eax
push esi
call edi
push 0
lea eax, [ebp - 0x38]
mov dword [ebp - 0x58], 0
push eax
push 4
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0
push eax
push esi
call edi
push 0
lea eax, [ebp - 0x38]
push eax
push 4
lea eax, [ebp - 0x58]
push eax
push esi
call edi
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x58]
mov edx, dword [eax]
mov eax, ecx
and eax, 2
and ecx, 1
push eax
push ecx
push dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x2c]
push eax
call dword [edx + 0x78]
push 3
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
call fcn.10139310
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x1009f26d
mov eax, dword [ecx + 4]
mov dword [ecx + 4], 0
test eax, eax
je 0x1009f26d
nop word [eax + eax]
mov dword [eax], 0
mov eax, dword [eax + 4]
test eax, eax
jne 0x1009f260
lea ecx, [ebp - 0x3c]
call fcn.101393c0
mov eax, dword [ebp - 0x14]
cmp eax, 0xf
jbe 0x1009f2e2
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], eax
test ecx, ecx
jne 0x1009f2d8
test eax, eax
je 0x1009f2d8
push str.null_pointer_cannot_point_to_a_block_of_non_zero_size
push 0x101d467c
push ecx
push 0x3b4
push 0x101d4680
push 2
call fcn.10143d00
add esp, 0x18
cmp eax, 1
jne 0x1009f2b4
int3
push 0
push 0x3b4
push str.C:Program_FilesMicrosoft_Visual_Studio2022CommunityVCToolsMSVC14.40.33807includexmemory
push 0x101d47ac
push str._null_pointer_cannot_point_to_a_block_of_non_zero_size_
call fcn.10152640
mov eax, dword [ebp - 0x3c]
add esp, 0x14
mov ecx, dword [ebp - 0x40]
push eax
push ecx
call fcn.10048760
add esp, 8
mov eax, dword [ebp - 0x2c]
push 8
push eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
call fcn.1013c8d0
add esp, 8
cmp dword [ebp - 0x34], 0
jg 0x1009f333
jmp 0x1009f317
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0x16c
push 0x101da668
push str.No_font_name
push str.ERROR____s_n_s:__d_n_n
call fcn.10089a80
add esp, 0x10
push 0
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x44]
push 4
add eax, 0x180
push eax
push esi
call edi
push 0
lea eax, [ebp - 0x38]
push eax
push 4
lea eax, [ebp - 0x34]
push eax
push esi
call edi
mov edi, dword [ebp - 0x34]
test edi, edi
jle 0x1009f52b
mov dword [ebp - 0x2c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
cmp edi, 0x7fffffff
ja 0x1009f56d
lea eax, [ebp - 0x2d]
push 8
mov dword [ebp - 0x50], eax
call fcn.1013ca30
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x54], eax
add esp, 4
mov dword [eax], ecx
mov dword [eax + 4], 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 2
cmp edi, 0xf
ja 0x1009f3d7
push edi
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], edi
push 0x3f
push eax
mov dword [ebp - 0x14], 0xf
call fcn.1013f8f0
add esp, 0xc
mov byte [ebp + edi - 0x28], 0
jmp 0x1009f420
mov eax, edi
or eax, 0xf
cmp eax, 0x7fffffff
jbe 0x1009f3ea
mov eax, 0x7fffffff
jmp 0x1009f3f5
cmp eax, 0x16
mov ecx, 0x16
cmovb eax, ecx
mov dword [ebp - 0x48], eax
inc eax
push eax
call fcn.100490d0
mov esi, eax
mov dword [ebp - 0x18], edi
mov eax, dword [ebp - 0x48]
push edi
push 0x3f
push esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x14], eax
call fcn.1013f8f0
mov byte [esi + edi], 0
add esp, 0x10
mov esi, dword [ebp - 0x4c]
mov dword [ebp - 0x54], 0
push 0
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x38]
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
cmova eax, dword [ebp - 0x28]
push ecx
push dword [ebp - 0x34]
push eax
push esi
call edi
mov ecx, dword [ebp - 0x44]
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ecx]
call dword [eax + 0x70]
push 3
lea ecx, [ebp - 0x40]
call fcn.10139310
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x1009f48d
mov eax, dword [ecx + 4]
mov dword [ecx + 4], 0
test eax, eax
je 0x1009f48d
nop word [eax + eax]
mov dword [eax], 0
mov eax, dword [eax + 4]
test eax, eax
jne 0x1009f480
lea ecx, [ebp - 0x40]
call fcn.101393c0
mov eax, dword [ebp - 0x14]
cmp eax, 0xf
jbe 0x1009f502
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x40], eax
test ecx, ecx
jne 0x1009f4f8
test eax, eax
je 0x1009f4f8
push str.null_pointer_cannot_point_to_a_block_of_non_zero_size
push 0x101d467c
push ecx
push 0x3b4
push 0x101d4680
push 2
call fcn.10143d00
add esp, 0x18
cmp eax, 1
jne 0x1009f4d4
int3
push 0
push 0x3b4
push str.C:Program_FilesMicrosoft_Visual_Studio2022CommunityVCToolsMSVC14.40.33807includexmemory
push 0x101d47ac
push str._null_pointer_cannot_point_to_a_block_of_non_zero_size_
call fcn.10152640
mov eax, dword [ebp - 0x40]
add esp, 0x14
mov ecx, dword [ebp - 0x4c]
push eax
push ecx
call fcn.10048760
add esp, 8
mov eax, dword [ebp - 0x2c]
push 8
push eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
call fcn.1013c8d0
add esp, 8
jmp 0x1009f531
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x44]
cmp dword [eax + 0x40], 2
jb 0x1009f549
push 0
lea eax, [ebp - 0x38]
push eax
push 4
lea eax, [ebp - 0x40]
push eax
push esi
call edi
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1013c8c0
mov esp, ebp
pop ebp
ret 4
call fcn.10043b90
call fcn.10043b90
int3