Function at 0x10121dd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10195eab
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x101f62b4]
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
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x240], 0
mov byte [ebp - 0x21d], 0
test eax, eax
je 0x10121e27
cmp word [eax], 0
jne 0x10121e45
cmp dword [edi + 0x48], 8
lea eax, [edi + 0x34]
mov byte [ebp - 0x21d], 1
mov dword [ebp - 0x224], eax
jb 0x10121e45
mov eax, dword [eax]
mov dword [ebp - 0x224], eax
test edx, edx
je 0x10121e74
cmp word [edx], 0
je 0x10121e74
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10121e54
sub ecx, esi
lea ebx, [edi + 0x4c]
sar ecx, 1
push ecx
push edx
mov ecx, ebx
call fcn.10001e80
jmp 0x10122032
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x10121eb2
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10121e93
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [edi + 0x4c]
call fcn.10001e80
push 0x11
push 0x101d04c8
lea ecx, [edi + 0x4c]
call fcn.10001f90
cmp dword [edi + 0x60], 8
lea edx, [edi + 0x4c]
jb 0x10121ecd
mov edx, dword [edi + 0x4c]
mov ecx, edx
mov dword [ebp - 0x22c], 0
xor eax, eax
mov dword [ebp - 0x228], 7
mov word [ebp - 0x23c], ax
lea ebx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10121ef0
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x23c]
call fcn.10001e80
cmp dword [ebp - 0x228], 8
lea eax, [ebp - 0x23c]
cmovae eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
mov edx, dword [ebp - 0x228]
test eax, eax
sete al
mov byte [ebp - 0x21e], al
cmp edx, 8
jb 0x10121f78
mov ecx, dword [ebp - 0x23c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10121f68
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1012229a
push edx
push ecx
call fcn.1015cb05
mov al, byte [ebp - 0x21e]
add esp, 8
lea ebx, [edi + 0x4c]
test al, al
je 0x10122032
cmp dword [edi + 0x60], 8
lea edx, [edi + 0x4c]
jb 0x10121f8f
mov edx, dword [edi + 0x4c]
mov ecx, edx
mov dword [ebp - 0x22c], 0
xor eax, eax
mov dword [ebp - 0x228], 7
mov word [ebp - 0x23c], ax
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10121fb1
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x23c]
call fcn.10001e80
cmp dword [ebp - 0x228], 8
lea eax, [ebp - 0x23c]
push 0
cmovae eax, dword [ebp - 0x23c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov edx, dword [ebp - 0x228]
lea ebx, [edi + 0x4c]
cmp edx, 8
jb 0x10122032
mov ecx, dword [ebp - 0x23c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10122025
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1012229f
push edx
push ecx
call fcn.1015cb05
add esp, 8
lea ebx, [edi + 0x4c]
cmp byte [ebp - 0x21d], 0
mov esi, dword [ebp - 0x224]
jne 0x101220b0
mov ecx, esi
mov dword [ebp - 0x22c], 0
xor eax, eax
mov dword [ebp - 0x228], 7
mov word [ebp - 0x23c], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10122063
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x23c]
call fcn.10001e80
cmp dword [ebp - 0x228], 8
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x240], 1
cmovae eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsFileSpecW]
mov byte [ebp - 0x21d], 1
cmp eax, 1
jne 0x101220b7
mov byte [ebp - 0x21d], 0
test byte [ebp - 0x240], 1
je 0x10122100
mov edx, dword [ebp - 0x228]
cmp edx, 8
jb 0x10122100
mov ecx, dword [ebp - 0x23c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x101220f6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x101222a4
push edx
push ecx
call fcn.1015cb05
add esp, 8
cmp byte [ebp - 0x21d], 0
jne 0x10122276
mov ecx, esi
mov dword [ebp - 0x248], 0
xor eax, eax
mov dword [ebp - 0x244], 7
mov word [ebp - 0x258], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10122130
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x258]
call fcn.10001e80
lea edx, [ebp - 0x258]
mov dword [ebp - 4], 0
mov ecx, ebx
call fcn.10126530
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x244]
mov byte [ebp - 0x21e], al
cmp edx, 8
jb 0x101221b3
mov ecx, dword [ebp - 0x258]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x101221a3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x101222a9
push edx
push ecx
call fcn.1015cb05
mov al, byte [ebp - 0x21e]
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 7
mov word [ebp - 0x258], cx
test al, al
je 0x10122276
mov eax, dword [edi + 0x68]
test eax, eax
je 0x101221ed
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x68], 0
cmp dword [ebx + 0x14], 8
mov dword [ebp - 0x21c], 0
jb 0x101221ff
mov ebx, dword [ebx]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edx, eax
lea esi, [edx + 2]
nop dword [eax + eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x10122210
sub edx, esi
lea ecx, [edi + 0x34]
sar edx, 1
push edx
push eax
call fcn.10001e80
cmp byte [edi + 0x6d], 0
mov eax, dword [edi]
mov esi, dword [eax]
mov ecx, esi
je 0x10122248
lea eax, [edi + 0x68]
push eax
call dword [0x1019a4f8]
mov ecx, edi
call esi
mov byte [edi + 0x6c], al
jmp 0x1012227c
lea eax, [ebp - 0x21c]
push eax
call dword [0x1019a4f8]
mov ecx, edi
call esi
mov byte [edi + 0x6c], al
test al, al
je 0x10122271
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x10122271
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [edi + 0x6c]
jmp 0x1012227c
mov byte [edi + 0x6c], 0
xor al, al
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.1015c7a5
mov esp, ebp
pop ebp
ret 8
call fcn.10168635
call fcn.10168635
call fcn.10168635
call fcn.10168635
int3