Function at 0x10081370
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x1009c042
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x100c60c8]
xor eax, esp
mov dword [esp + 0x430], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100c60c8]
xor eax, esp
push eax
lea eax, [esp + 0x44c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x45c]
xor esi, esi
mov ebx, 1
test byte [0x100c9574], bl
mov dword [esp + 0x1c], esi
jne 0x10081400
or dword [0x100c9574], ebx
mov dword [esp + 0x454], esi
push 0x18
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
push eax
mov dword [0x100c9570], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x100a99c0
call fcn.10091900
add esp, 4
mov dword [esp + 0x454], 0xffffffff
mov eax, dword [0x100c9570]
cmp eax, esi
mov dword [esp + 0x20], 0x100c9570
je 0x10081418
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x454], ebx
mov eax, 2
test byte [0x100c9574], al
jne 0x10081452
or dword [0x100c9574], eax
mov byte [esp + 0x454], al
call fcn.10081890
push 0x100a9980
call fcn.10091900
add esp, 4
mov byte [esp + 0x454], bl
mov esi, dword [0x100c94dc]
lea edi, [esp + 0x1c]
lea ebx, [esp + 0x24]
call fcn.10081a20
mov edi, eax
mov eax, dword [edi]
xor ebx, ebx
cmp eax, ebx
je 0x10081476
cmp eax, 0x100c94d8
je 0x1008147c
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [edi + 4], esi
je 0x100814b9
lea eax, [esp + 0x1c]
push eax
call fcn.10081900
push 0xffffffffffffffff
push ebx
mov ecx, ebp
call fcn.100076e0
mov dword [esp + 0x454], 0xffffffff
mov eax, dword [0x100c9570]
cmp eax, ebx
je 0x100814b0
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x20], ebx
jmp 0x100815c4
mov eax, dword [0x100c9570]
cmp eax, ebx
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
je 0x100814cb
push eax
call edi
push 0x410
lea ecx, [esp + 0x32]
push ebx
push ecx
mov dword [esp + 0x2c], ebx
mov word [esp + 0x38], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea edx, [esp + 0x18]
push edx
push ebx
push ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x1008151f
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x10081531
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x1008151f
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [esp + 0x454], 0xffffffff
xor al, al
jmp 0x100815c6
lea eax, [esp + 0x2c]
lea edx, [eax + 2]
jmp 0x10081540
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10081540
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x30]
push edx
mov esi, ebp
call fcn.10011cd0
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x1008156b
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [0x100c9570]
cmp eax, ebx
mov dword [esp + 0x24], 0x100c9570
je 0x10081583
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x454], 3
lea eax, [esp + 0x1c]
push eax
call fcn.10081900
push 0xffffffffffffffff
mov ecx, eax
push ebx
mov eax, ebp
call fcn.100076e0
mov byte [esp + 0x454], 1
mov eax, dword [0x100c9570]
cmp eax, ebx
je 0x100815b5
push eax
call edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x454], 0xffffffff
mov al, 1
mov ecx, dword [esp + 0x44c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x430]
xor ecx, esp
call fcn.1009176c
add esp, 0x444
ret