Function at 0x100102c0
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc64
mov eax, dword [0x10016334]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov dword [ebp - 0xc64], eax
mov esi, edx
mov eax, dword [ebp + 0x18]
mov edx, 0x800a0bb8
push edi
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 0xc58], eax
xor eax, eax
mov dword [ebp - 0xc5c], ebx
mov dword [ebp - 0xc60], 0x12ee40
lea esp, [esp]
cmp edx, ecx
je 0x10010322
mov edx, dword [eax*8 + 0x100029e8]
inc eax
test edx, edx
jne 0x10010310
jmp 0x1001032f
mov eax, dword [eax*8 + 0x100029e4]
mov dword [ebp - 0xc60], eax
test ebx, ebx
jne 0x10010343
cmp dword [ebp - 0xc58], ebx
jne 0x10010343
test edi, edi
je 0x1001047f
cmp byte [0x100166a4], 0
movzx ebx, cx
jne 0x1001035b
mov byte [0x100166a4], 1
call fcn.1000f490
push 0x400
lea eax, [ebp - 0xc54]
push eax
mov eax, dword [0x10016698]
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_LoadStringW]
mov ebx, eax
test ebx, ebx
je 0x100103a2
cmp dword [ebp - 0xc5c], 0
je 0x100103a2
lea eax, [ebp - 0xc54]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [ebp - 0xc5c]
mov dword [ecx], eax
test eax, eax
je 0x100104d5
cmp dword [ebp - 0xc58], 0
je 0x10010473
test ebx, ebx
je 0x10010473
mov eax, dword [0x100029a8]
mov dword [ebp - 0x14], eax
mov eax, dword [0x100029ac]
mov dword [ebp - 0x10], eax
mov eax, dword [0x100029b0]
mov dword [ebp - 0xc], eax
mov ax, word [0x100029b4]
push 0x20a
mov word [ebp - 8], ax
lea eax, [ebp - 0x220]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x230
lea eax, [ebp - 0x450]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
lea eax, [ebp - 0x220]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp eax, 0x105
jbe 0x10010431
pop edi
pop esi
mov eax, 0x80010135
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10013ec0
mov esp, ebp
pop ebp
ret
push 0x10003150
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x220]
push eax
push 0x100029b8
lea eax, [ebp - 0x450]
push 0x118
push eax
call fcn.10011590
add esp, 0x18
lea eax, [ebp - 0x450]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edx, dword [ebp - 0xc58]
mov dword [edx], eax
test eax, eax
je 0x100104d5
test edi, edi
je 0x1001047f
mov eax, dword [ebp - 0xc60]
mov dword [edi], eax
mov ebx, dword [ebp - 0xc64]
test ebx, ebx
je 0x100104f9
xor edx, edx
xor ecx, ecx
lea ecx, [ecx]
mov eax, dword [ecx + 0x100160d0]
cmp esi, dword [eax]
je 0x100104b3
add ecx, 0xc
inc edx
cmp ecx, 0x24c
jb 0x10010490
push 0x10002994
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
jmp 0x100104cf
cmp edx, 0x31
jae 0x100104a6
lea eax, [edx + edx*2]
push dword [eax*4 + 0x100160d4]
push dword [eax*4 + 0x100160d8]
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov dword [ebx], eax
test eax, eax
jne 0x100104f9
test byte [0x1001669c], 2
je 0x100104e3
mov eax, dword [0x10018010]
pop edi
pop esi
mov eax, 0x8007000e
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10013ec0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10013ec0
mov esp, ebp
pop ebp
ret