Function at 0x1000dbb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10020466
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 0x10021d99
lea ecx, [ebp - 0x144]
call fcn.1000c590
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 [0x10021ae7]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x120], 0
mov ecx, dword [ebp - 0x10]
add ecx, 1
push ecx
call fcn.10015ab7
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.10016820
add esp, 0xc
mov edx, dword [ebp - 0x10]
push edx
push str.B_XWa
mov eax, dword [ebp - 0x120]
push eax
call fcn.100164e0
add esp, 0xc
push 0x10021c4c
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x120]
push edx
call fcn.10011ca0
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.1001641a
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 0x1000de03
movzx eax, byte [0x10021bfc]
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x14c], 0
mov ecx, dword [ebp - 0x150]
add ecx, 1
push ecx
call fcn.10015ab7
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.10016820
add esp, 0xc
mov edx, dword [ebp - 0x150]
push edx
push str.bv_Iyde__KsSg
mov eax, dword [ebp - 0x14c]
push eax
call fcn.100164e0
add esp, 0xc
push 0x10021c4c
mov ecx, dword [ebp - 0x150]
push ecx
mov edx, dword [ebp - 0x14c]
push edx
call fcn.10011ca0
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.1001641a
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 0x1000ddf6
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 0x1000ddf6
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 0x1000de1e
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.1000c590
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.10015c70
pop edi
mov esp, ebp
pop ebp
ret 8