Function at 0x100121c0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010a632
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x10137920]
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 esi, dword [ebp + 8]
mov ebx, ecx
cmp dword [ebx + 0xb8], 0
lea edi, [ebx + 0xa8]
mov dword [ebp - 0x254], ebx
mov dword [ebp - 0x258], esi
mov dword [ebp - 0x25c], 0
je 0x1001224c
cmp dword [edi + 0x14], 8
jb 0x10012222
mov eax, dword [edi]
jmp 0x10012224
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
test al, al
je 0x1001224c
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
jmp 0x10012431
cmp byte [ebx + 0x134], 0
je 0x10012321
cmp dword [ebx + 0x128], 0
je 0x10012321
call fcn.10019850
lea esi, [ebp - 0x234]
cmp eax, 1
je 0x100122e5
call fcn.1001c590
mov ebx, eax
lea esi, [ebp - 0x250]
mov dword [ebp - 4], 0
call fcn.1001c3b0
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.1000a320
mov ecx, dword [ebp - 0x254]
push 0xffffffffffffffff
push 0
add ecx, 0x118
push ecx
mov ecx, eax
call fcn.1000a320
push 0xffffffffffffffff
push 0
push ebx
mov ecx, eax
call fcn.1000a320
lea ecx, [ebp - 0x250]
call fcn.1000b180
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], 0xffffffff
call fcn.1000b180
jmp 0x10012418
call fcn.1001c5c0
mov ebx, eax
lea esi, [ebp - 0x250]
mov dword [ebp - 4], 2
call fcn.1001c3e0
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.1000a320
mov edx, dword [ebp - 0x254]
push 0xffffffffffffffff
push 0
add edx, 0x118
push edx
jmp 0x100122b0
lea ecx, [ebp - 0x250]
call fcn.10012460
push eax
lea ebx, [ebp - 0x234]
mov dword [ebp - 4], 4
call fcn.1000b570
add esp, 4
push eax
mov ecx, edi
mov byte [ebp - 4], 5
call fcn.10009ca0
cmp dword [ebp - 0x220], 8
jb 0x10012366
mov eax, dword [ebp - 0x234]
push eax
call fcn.10065453
add esp, 4
xor ecx, ecx
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x23c], 0x10
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
mov word [ebp - 0x234], cx
jb 0x100123a2
mov edx, dword [ebp - 0x250]
push edx
call fcn.10065453
add esp, 4
mov eax, dword [ebp - 0x254]
cmp dword [eax + 0xb8], 0
jne 0x1001241e
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x216]
push edx
mov word [ebp - 0x218], cx
call fcn.10066620
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1001241e
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100123f0
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x218]
push ecx
mov ecx, edi
call fcn.1000abb0
mov eax, 0x5c
call fcn.1000be20
mov esi, dword [ebp - 0x258]
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], dx
push 0xffffffffffffffff
push 0
push edi
mov ecx, esi
call fcn.1000b050
mov eax, esi
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.1006656c
mov esp, ebp
pop ebp
ret 4