Function at 0x100101b0
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10029826
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x258
mov eax, dword [0x10037040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebx + 8]
lea eax, [ebp - 0x220]
push 0x208
push 0
push eax
mov dword [ebp - 0x264], esi
mov dword [ebp - 0x248], esi
call sub.VCRUNTIME140.dll_memset
mov edi, dword [ebx + 0xc]
add esp, 0xc
mov ecx, edi
cmp dword [edi + 0x14], 0xf
jbe 0x10010223
mov ecx, dword [edi]
mov eax, dword [edi + 0x10]
mov edx, eax
push 2
push 0x1002dd58
mov dword [ebp - 0x248], eax
call fcn.10009810
add esp, 8
test al, al
je 0x10010248
mov eax, 0x1a
jmp 0x10010271
cmp dword [edi + 0x14], 0xf
jbe 0x10010250
mov edi, dword [edi]
mov edx, dword [ebp - 0x248]
mov ecx, edi
push 2
push 0x1002dd5c
call fcn.10009810
add esp, 8
test al, al
je 0x100104a7
xor eax, eax
push 0
push eax
lea eax, [ebp - 0x220]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x10010480
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x238]
call fcn.100120d0
lea eax, [ebp - 0x220]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x260]
call fcn.100120d0
push 0
push 0
push 0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x260]
cmp dword [ebp - 0x24c], 7
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmova eax, dword [ebp - 0x260]
push 0
push dword [ebp - 0x250]
push eax
push 0
push 0xfde9
call esi
mov edi, eax
mov dword [ebp - 0x23c], 0
push ecx
xorps xmm0, xmm0
movq qword [ebp - 0x244], xmm0
lea ecx, [edi + 1]
push ecx
lea ecx, [ebp - 0x244]
call fcn.1000a4f0
cmp dword [ebp - 0x24c], 7
lea eax, [ebp - 0x260]
push 0
cmova eax, dword [ebp - 0x260]
push 0
push edi
push dword [ebp - 0x244]
push dword [ebp - 0x250]
push eax
push 0
push 0xfde9
call esi
mov eax, dword [ebp - 0x244]
mov byte [eax + edi], 0
mov esi, dword [ebp - 0x264]
xorps xmm0, xmm0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x244]
mov ecx, edx
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10010375
sub ecx, edi
push ecx
push edx
mov ecx, esi
call fcn.10009bd0
mov edx, dword [ebp - 0x244]
test edx, edx
je 0x100103df
mov ecx, dword [ebp - 0x23c]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x100103b7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001046e
push ecx
push edx
call fcn.10026cc1
add esp, 8
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 0
mov ecx, dword [ebp - 0x24c]
cmp ecx, 7
jbe 0x1001041b
mov edx, dword [ebp - 0x260]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10010411
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001046e
push ecx
push edx
call fcn.10026cc1
add esp, 8
mov ecx, dword [ebp - 0x224]
xor eax, eax
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
cmp ecx, 7
jbe 0x100104c9
mov edx, dword [ebp - 0x238]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10010474
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10010474
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10026cc1
add esp, 8
jmp 0x100104c9
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
jmp 0x100104c9
xorps xmm0, xmm0
mov ecx, esi
push 0
movups xmmword [esi], xmm0
push 0x1002df80
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.10009bd0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10026c90
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8