Function at 0x1001dab0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10132cb3
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x101ba518]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x250], ebx
call fcn.1001ddc0
and eax, 0xffff0000
cmp eax, 0x800000
jl 0x1001db51
push str.API_MS_WIN
lea ecx, [ebp - 0x230]
call fcn.100062a0
mov dword [ebp - 4], ebx
mov ebx, 1
mov dword [ebp - 0x250], ebx
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
cmovae eax, dword [ebp - 0x230]
cmp dword [edi + 0x14], 8
jb 0x1001db35
mov ecx, dword [edi]
jmp 0x1001db37
mov ecx, edi
push dword [ebp - 0x220]
push eax
push ecx
call fcn.10115dcc
add esp, 0xc
mov byte [ebp - 0x249], bl
test eax, eax
je 0x1001db58
mov byte [ebp - 0x249], 0
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x1001dba1
and ebx, 0xfffffffe
mov dword [ebp - 0x250], ebx
cmp dword [ebp - 0x21c], 8
jb 0x1001db84
push dword [ebp - 0x230]
call fcn.10115284
add esp, 4
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
cmp byte [ebp - 0x249], 0
je 0x1001dc77
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 4], 1
cmp dword [edi + 0x14], 8
jb 0x1001dbdd
mov ecx, dword [edi]
jmp 0x1001dbdf
mov ecx, edi
test ecx, ecx
jne 0x1001dbe7
xor edx, edx
jmp 0x1001dc00
mov edx, ecx
lea esi, [edx + 2]
lea esp, [esp]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1001dbf0
sub edx, esi
sar edx, 1
inc edx
push ecx
lea eax, [ebp - 0x224]
push eax
call fcn.1001d6e0
mov ebx, eax
add esp, 8
xor esi, esi
test ebx, ebx
je 0x1001dd5f
lea esp, [esp]
push dword [esi + 0x10171820]
push ebx
call fcn.10115359
add esp, 8
test eax, eax
je 0x1001dd56
add esi, 4
cmp esi, 0x18
jb 0x1001dc20
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x1001dc77
push eax
call fcn.10115284
add esp, 4
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1001dd9b
cmp eax, 0x104
ja 0x1001dd9b
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.100062a0
mov dword [ebp - 4], 2
lea edx, [ebp - 0x230]
push edi
lea ecx, [ebp - 0x248]
call fcn.1001d830
add esp, 4
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x1001dcd6
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x234], 8
jb 0x1001dcfa
push dword [ebp - 0x248]
call fcn.10115284
add esp, 4
xor eax, eax
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x21c], 8
jb 0x1001dd35
push dword [ebp - 0x230]
call fcn.10115284
add esp, 4
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov eax, esi
mov dword [ebp - 0x220], 0
jmp 0x1001dd9d
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x224]
test ecx, ecx
je 0x1001dd97
push ecx
call fcn.10115284
add esp, 4
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
mov eax, esi
jmp 0x1001dd9d
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10115289
mov esp, ebp
pop ebp
ret