Function at 0x1000b421
Capabilities:
Get common file path
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
push 0x80000301
push 0
push 0x104
push 1
mov ebx, 0x184
call fcn.1007eaf0
add esp, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1000b47b
push ebx
call fcn.1007e29b
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], esp
push 0
push 0x1a
push dword [ebp - 4]
push 0
xor eax, eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x1000b4ba
push 0x32
push 0x4020662
push 6
call fcn.1007e2a1
add esp, 0xc
mov eax, 0x100aa915
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.10002153
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x1000b4de
push ebx
call fcn.1007e29b
add esp, 4
push dword [ebp - 0x18]
push dword [ebp - 4]
mov ecx, 2
call fcn.1000422e
add esp, 8
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x1000b504
push ebx
call fcn.1007e29b
add esp, 4
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1000b518
push ebx
call fcn.1007e29b
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push 1
push 2
mov ebx, 0xc8
call fcn.1007e9f0
add esp, 0x1c
mov dword [ebp - 0x14], eax
push 0x80000301
push 0
push 0
push 0x80000301
push 0
push 0x80
push 2
mov ebx, 0xc8
call fcn.1007e9f0
add esp, 0x1c
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esp
push 0
push dword [ebp - 0x18]
push 4
push 0
push dword [ebp - 0x14]
push 0x80000000
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x1000b5bc
push 0x17e
push 0x4020662
push 6
call fcn.1007e2a1
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000b5d7
cmp dword [ebp - 8], 0xffffffff
je 0x1000b5d7
xor eax, eax
jmp 0x1000b5dc
mov eax, 1
test eax, eax
je 0x1000b5ee
mov eax, 0x100aa45a
jmp 0x1000b765
mov dword [ebp - 0x14], esp
mov eax, 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x1000b626
push 0x25d
push 0x4020662
push 6
call fcn.1007e2a1
add esp, 0xc
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push dword [ebp - 0xc]
push 1
mov ebx, 0x1bc
call fcn.1007e9c0
add esp, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x1000b65c
push ebx
call fcn.1007e29b
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esp
push 0
mov eax, 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1000b681
add eax, 8
push eax
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x1000b6ab
push 0x2b5
push 0x4020662
push 6
call fcn.1007e2a1
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
call fcn.10002153
mov dword [ebp - 0x14], eax
push OleUIBusyA
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x1000b6ca
mov eax, 0x100aa45a
push eax
push 1
mov ebx, 0x198
call fcn.1007f3a0
add esp, 0x10
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x1000b6f0
push ebx
call fcn.1007e29b
add esp, 4
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x1000b704
push ebx
call fcn.1007e29b
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esp
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x1000b734
push 0x336
push 0x4020662
push 6
call fcn.1007e2a1
add esp, 0xc
push OleUIBusyA
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x1000b747
mov eax, 0x100aa368
push eax
push 1
mov ebx, 0x168
call fcn.1007ebe0
add esp, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
jmp 0x1000b765
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1000b776
push ebx
call fcn.1007e29b
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x1000b786
push ebx
call fcn.1007e29b
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret