Function at 0x468170
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x67894b
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x77e784]
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 ebx, ecx
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x254], 0
mov byte [ebp - 0x249], 0
test eax, eax
je 0x4681c7
cmp word [eax], 0
jne 0x4681e5
cmp dword [ebx + 0x48], 8
lea eax, [ebx + 0x34]
mov byte [ebp - 0x249], 1
mov dword [ebp - 0x250], eax
jb 0x4681e5
mov eax, dword [eax]
mov dword [ebp - 0x250], eax
test edx, edx
je 0x468214
cmp word [edx], 0
je 0x468214
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4681f4
sub ecx, esi
lea edi, [ebx + 0x4c]
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.00468970
jmp 0x46842b
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x468276
cmp word [ebp - 0x218], 0
jne 0x46824a
xor ecx, ecx
lea eax, [ebp - 0x218]
push ecx
lea esi, [ebx + 0x4c]
push eax
mov ecx, esi
call fcn.00468970
jmp 0x468279
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x468253
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
lea esi, [ebx + 0x4c]
push ecx
push eax
mov ecx, esi
call fcn.00468970
jmp 0x468279
lea esi, [ebx + 0x4c]
cmp dword [esi + 0x14], 8
jb 0x468283
mov edx, dword [esi]
jmp 0x468285
mov edx, esi
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
cmp word [edx], ax
jne 0x4682ab
xor ecx, ecx
jmp 0x4682bf
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4682b0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x230]
call fcn.00468970
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
mov eax, dword [ebp - 0x21c]
sete byte [ebp - 0x24a]
cmp eax, 8
jb 0x46834b
mov edx, dword [ebp - 0x230]
inc eax
mov ecx, edx
cmp eax, 0x7fffffff
ja 0x4686d9
add eax, eax
cmp eax, 0x1000
jb 0x468342
test cl, 0x1f
jne 0x4686d9
lea eax, [edx - 4]
mov edx, dword [eax]
cmp edx, ecx
jae 0x4686d9
sub ecx, edx
cmp ecx, 4
jb 0x4686d9
cmp ecx, 0x23
ja 0x4686d9
push edx
call fcn.004d0fc0
add esp, 4
cmp byte [ebp - 0x24a], 0
mov edi, esi
je 0x46842b
cmp dword [esi + 0x14], 8
jb 0x468364
mov edx, dword [esi]
jmp 0x468366
mov edx, esi
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
cmp word [edx], ax
jne 0x46838c
xor ecx, ecx
jmp 0x4683a0
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x468391
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x230]
call fcn.00468970
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push 0
cmovae eax, dword [ebp - 0x230]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov eax, dword [ebp - 0x21c]
mov edi, esi
cmp eax, 8
jb 0x46842b
mov edx, dword [ebp - 0x230]
inc eax
mov ecx, edx
cmp eax, 0x7fffffff
ja 0x4686d9
add eax, eax
cmp eax, 0x1000
jb 0x468420
test cl, 0x1f
jne 0x4686d9
lea eax, [edx - 4]
mov edx, dword [eax]
cmp edx, ecx
jae 0x4686d9
sub ecx, edx
cmp ecx, 4
jb 0x4686d9
cmp ecx, 0x23
ja 0x4686d9
push edx
call fcn.004d0fc0
add esp, 4
mov edi, esi
cmp byte [ebp - 0x249], 0
mov esi, dword [ebp - 0x250]
jne 0x4684bd
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
cmp word [esi], ax
jne 0x468464
xor ecx, ecx
jmp 0x46847f
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x468470
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x230]
call fcn.00468970
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
mov dword [ebp - 0x254], 1
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsFileSpecW]
mov byte [ebp - 0x249], 1
cmp eax, 1
jne 0x4684c4
mov byte [ebp - 0x249], 0
test byte [ebp - 0x254], 1
je 0x468528
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x468528
mov edx, dword [ebp - 0x230]
inc eax
mov ecx, edx
cmp eax, 0x7fffffff
ja 0x4686d9
add eax, eax
cmp eax, 0x1000
jb 0x46851f
test cl, 0x1f
jne 0x4686d9
lea eax, [edx - 4]
mov edx, dword [eax]
cmp edx, ecx
jae 0x4686d9
sub ecx, edx
cmp ecx, 4
jb 0x4686d9
cmp ecx, 0x23
ja 0x4686d9
push edx
call fcn.004d0fc0
add esp, 4
cmp byte [ebp - 0x249], 0
jne 0x4686b5
xor eax, eax
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
cmp word [esi], ax
jne 0x46855b
xor ecx, ecx
jmp 0x46856f
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x468560
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x248]
call fcn.00468970
lea edx, [ebp - 0x248]
mov dword [ebp - 4], 0
mov ecx, edi
call fcn.00473890
mov byte [ebp - 0x24a], al
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x4685f6
mov edx, dword [ebp - 0x248]
inc eax
mov ecx, edx
cmp eax, 0x7fffffff
ja 0x4686d9
add eax, eax
cmp eax, 0x1000
jb 0x4685ed
test cl, 0x1f
jne 0x4686d9
mov edx, dword [edx - 4]
cmp edx, ecx
jae 0x4686d9
sub ecx, edx
cmp ecx, 4
jb 0x4686d9
cmp ecx, 0x23
ja 0x4686d9
push edx
call fcn.004d0fc0
add esp, 4
xor eax, eax
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
cmp byte [ebp - 0x24a], al
je 0x4686b5
mov eax, dword [ebx + 0x68]
lea esi, [ebx + 0x68]
test eax, eax
je 0x468636
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x258], 0
jb 0x468648
mov edi, dword [edi]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edx, eax
cmp word [edx], 0
jne 0x46865b
xor ecx, ecx
jmp 0x46866f
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x468660
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebx + 0x34]
call fcn.00468970
cmp byte [ebx + 0x6d], 0
mov eax, dword [ebx]
mov eax, dword [eax]
je 0x46868d
push esi
mov ecx, ebx
call eax
mov byte [ebx + 0x6c], al
jmp 0x4686bb
lea ecx, [ebp - 0x258]
push ecx
mov ecx, ebx
call eax
mov byte [ebx + 0x6c], al
test al, al
je 0x4686b0
mov eax, dword [ebp - 0x258]
test eax, eax
je 0x4686b0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebx + 0x6c]
jmp 0x4686bb
mov byte [ebx + 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.0060bd4a
mov esp, ebp
pop ebp
ret 8
call fcn.0061777f
int3