Function at 0x1000db70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10020426
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x15c
mov eax, dword [0x100262c4]
mov dword [ebp - 0x14], eax
push edi
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x164], 0
push 0x10021d79
lea ecx, [ebp - 0x144]
call fcn.1000c550
mov dword [ebp - 4], 1
mov dword [ebp - 0x128], 0
mov byte [ebp - 0x11c], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x11b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
movzx eax, byte [0x10021ac7]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x120], 0
mov ecx, dword [ebp - 0x10]
add ecx, 1
push ecx
call fcn.10015a77
add esp, 4
mov dword [ebp - 0x154], eax
mov edx, dword [ebp - 0x154]
mov dword [ebp - 0x120], edx
mov eax, dword [ebp - 0x10]
add eax, 1
push eax
push 0
mov ecx, dword [ebp - 0x120]
push ecx
call fcn.100167e0
add esp, 0xc
mov edx, dword [ebp - 0x10]
push edx
push str.B_XWa
mov eax, dword [ebp - 0x120]
push eax
call fcn.100164a0
add esp, 0xc
push 0x10021c2c
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x120]
push edx
call fcn.10011c60
add esp, 0xc
mov eax, dword [ebp - 0x120]
push eax
lea ecx, [ebp - 0x144]
call fcn.10001fb0
mov ecx, dword [ebp - 0x120]
mov dword [ebp - 0x158], ecx
mov edx, dword [ebp - 0x158]
push edx
call fcn.100163da
add esp, 4
lea ecx, [ebp - 0x144]
call fcn.10001fd0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
je 0x1000ddc3
movzx eax, byte [0x10021bdc]
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x14c], 0
mov ecx, dword [ebp - 0x150]
add ecx, 1
push ecx
call fcn.10015a77
add esp, 4
mov dword [ebp - 0x15c], eax
mov edx, dword [ebp - 0x15c]
mov dword [ebp - 0x14c], edx
mov eax, dword [ebp - 0x150]
add eax, 1
push eax
push 0
mov ecx, dword [ebp - 0x14c]
push ecx
call fcn.100167e0
add esp, 0xc
mov edx, dword [ebp - 0x150]
push edx
push str.bv_Iyde__KsSg
mov eax, dword [ebp - 0x14c]
push eax
call fcn.100164a0
add esp, 0xc
push 0x10021c2c
mov ecx, dword [ebp - 0x150]
push ecx
mov edx, dword [ebp - 0x14c]
push edx
call fcn.10011c60
add esp, 0xc
mov eax, dword [ebp - 0x14c]
push eax
lea ecx, [ebp - 0x144]
call fcn.10001fb0
mov ecx, dword [ebp - 0x14c]
mov dword [ebp - 0x160], ecx
mov edx, dword [ebp - 0x160]
push edx
call fcn.100163da
add esp, 4
lea ecx, [ebp - 0x144]
call fcn.10001fd0
push eax
mov eax, dword [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x148], eax
cmp dword [ebp - 0x148], 0
je 0x1000ddb6
lea ecx, [ebp - 0x11c]
push ecx
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
push 0
call dword [ebp - 0x148]
test eax, eax
jl 0x1000ddb6
mov dword [ebp - 0x128], 1
mov eax, dword [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x128], 0
jne 0x1000ddde
push 0x104
lea ecx, [ebp - 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [ebp - 0x11c]
push edx
mov ecx, dword [ebp + 8]
call fcn.1000c550
mov eax, dword [ebp - 0x164]
or eax, 1
mov dword [ebp - 0x164], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x144]
call fcn.10001f90
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.10015c30
pop edi
mov esp, ebp
pop ebp
ret 8