Function at 0x1000f0b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10054791
mov eax, dword fs:[0]
push eax
sub esp, 0x450
mov eax, dword [0x10070850]
xor eax, esp
mov dword [esp + 0x448], eax
push ebx
push esi
push edi
mov eax, dword [0x10070850]
xor eax, esp
push eax
lea eax, [esp + 0x460]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], ecx
call fcn.1002a030
mov edx, dword [eax + 8]
mov dword [esp + 0x30], edx
call fcn.1001dc0a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x1000f121
push 0x80004005
call fcn.10006d00
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
lea ecx, [esp + 0x244]
push ecx
push 0x104
mov dword [esp + 0x470], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je case.default.0x1000f21f
cmp eax, 0x104
jae case.default.0x1000f21f
lea eax, [esp + 0x244]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1000f170
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x242], 0x5c
je 0x1000f1a4
push 0x1005ec98
lea edx, [esp + 0x248]
push 0x104
push edx
call fcn.1003c283
add esp, 0xc
lea eax, [esp + 0x34]
push eax
push 0
push 0x1005ec9c
lea ecx, [esp + 0x250]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x1000f1e2
add edi, 0xfffffff0
mov dword [esp + 0x468], 0xffffffff
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jmp 0x1000f402
lea esi, [esp + 0x34]
call fcn.10019b40
test eax, eax
je 0x1000f356
call fcn.10019ce0
test eax, eax
jne 0x1000f20a
lea ecx, [esp + 0x14]
call fcn.10006d70
jmp 0x1000f40e
mov esi, 0x1005ec60
mov dword [esp + 0x10], esi
mov eax, dword [esi + 4]
cmp eax, 3
ja case.default.0x1000f21f
jmp dword [eax*4 + 0x1000f438]
lea eax, [esp + 0x34]
mov dword [esp + 0x24], eax
mov ecx, dword [esi]
mov ebx, dword [esp + 0x24]
push ecx
lea edx, [esp + 0x30]
push edx
call fcn.1001abd0
add esp, 8
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x46c], 1
call fcn.100069d0
mov byte [esp + 0x468], 0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000f27c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x14]
cmp dword [edi - 0xc], 0
je 0x1000f1fc
mov dword [esp + 0x1c], 0
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
call ebx
test eax, eax
je 0x1000f2aa
mov esi, edi
call fcn.10019b40
mov esi, dword [esp + 0x10]
push edi
call ebx
test eax, eax
je 0x1000f316
lea ecx, [esp + 0x18]
call fcn.10006d90
mov byte [esp + 0x468], 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push edi
lea ecx, [esp + 0x20]
push str._s__08X
push ecx
call fcn.10006ce0
mov ebx, dword [esp + 0x28]
add esp, 0x10
mov esi, edi
call fcn.10019a60
mov esi, ebx
call fcn.10019b40
lea eax, [ebx - 0x10]
mov byte [esp + 0x468], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1000f312
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x10]
mov ecx, dword [esi - 4]
mov edx, dword [esi - 8]
push ecx
mov ecx, dword [esp + 0x34]
push edx
push edi
call fcn.1000f450
test eax, eax
jne 0x1000f386
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, 5
mov dword [esp + 0x1c], eax
jl 0x1000f292
mov ecx, dword [esp + 0x20]
push 1
lea eax, [esp + 0x38]
push eax
call fcn.1000e8b0
add edi, 0xfffffff0
mov dword [esp + 0x468], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000f40e
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
jmp 0x1000f40e
add esi, 0x10
cmp esi, 0x1005eca0
mov dword [esp + 0x10], esi
jl 0x1000f213
mov ecx, dword [esp + 0x28]
push 0
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.1001ae10
mov ecx, dword [esp + 0x2c]
add esp, 0xc
push 1
lea eax, [esp + 0x38]
push eax
call fcn.1000e8b0
add edi, 0xfffffff0
mov dword [esp + 0x468], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000f3e4
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, 1
jmp 0x1000f410
add edi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edi + 0xc]
mov dword [esp + 0x468], ecx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1000f40e
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
xor eax, eax
mov ecx, dword [esp + 0x460]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x448]
xor ecx, esp
call fcn.1003aa2d
mov esp, ebp
pop ebp
ret 4