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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59a4db
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x610684]
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, ecx
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x250], 0
mov byte [ebp - 0x249], 0
test edi, edi
je 0x4666c1
cmp word [edi], 0
jne 0x4666d3
cmp dword [esi + 0x48], 8
lea edi, [esi + 0x34]
mov byte [ebp - 0x249], 1
jb 0x4666d3
mov edi, dword [edi]
test edx, edx
je 0x466702
cmp word [edx], 0
je 0x466702
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4666e2
sub ecx, ebx
lea ebx, [esi + 0x4c]
sar ecx, 1
push ecx
push edx
mov ecx, ebx
call fcn.0044f430
jmp 0x466850
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x46674f
cmp word [ebp - 0x218], 0
jne 0x466726
xor edx, edx
jmp 0x46673f
lea edx, [ebp - 0x218]
lea ecx, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x466730
sub edx, ecx
sar edx, 1
push edx
lea eax, [ebp - 0x218]
lea ecx, [esi + 0x4c]
push eax
call fcn.0044f430
cmp dword [esi + 0x60], 8
lea ebx, [esi + 0x4c]
jb 0x46675c
mov edx, dword [ebx]
jmp 0x46675e
mov edx, ebx
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
cmp word [edx], ax
jne 0x466784
xor ecx, ecx
jmp 0x4667a3
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x258], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x466790
sub ecx, dword [ebp - 0x258]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x230]
call fcn.0044f430
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]
setne byte [ebp - 0x24a]
cmp eax, 8
jb 0x4667f2
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.0044f7a0
cmp byte [ebp - 0x24a], 0
jne 0x466850
cmp dword [ebx + 0x14], 8
jb 0x466805
mov eax, dword [ebx]
jmp 0x466807
mov eax, ebx
push eax
lea ecx, [ebp - 0x230]
call fcn.0044f250
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]
cmp eax, 8
jb 0x466850
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.0044f7a0
cmp byte [ebp - 0x249], 0
jne 0x4668d1
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
cmp word [edi], ax
jne 0x46687f
xor ecx, ecx
jmp 0x466893
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x466884
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x230]
call fcn.0044f430
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
mov dword [ebp - 0x250], 1
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsFileSpecW]
mov byte [ebp - 0x249], 1
cmp eax, 1
jne 0x4668d8
mov byte [ebp - 0x249], 0
test byte [ebp - 0x250], 1
je 0x4668ff
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x4668ff
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.0044f7a0
cmp byte [ebp - 0x249], 0
je 0x466913
mov byte [esi + 0x6c], 0
xor al, al
jmp 0x466a2c
xor eax, eax
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
cmp word [edi], ax
jne 0x466939
xor ecx, ecx
jmp 0x46694f
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x466940
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x248]
call fcn.0044f430
lea edx, [ebp - 0x248]
mov dword [ebp - 4], 0
mov ecx, ebx
call fcn.0046dc20
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x234]
mov byte [ebp - 0x24a], al
cmp ecx, 8
jb 0x4669a1
inc ecx
push ecx
push dword [ebp - 0x248]
lea ecx, [ebp - 0x248]
call fcn.0044f7a0
mov al, byte [ebp - 0x24a]
xor ecx, ecx
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], cx
test al, al
jne 0x4669c7
mov byte [esi + 0x6c], cl
jmp 0x466a2c
mov eax, dword [esi + 0x68]
lea edi, [esi + 0x68]
test eax, eax
je 0x4669de
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
lea edx, [esi + 0x34]
mov dword [ebp - 0x254], 0
mov ecx, ebx
call fcn.0046e030
cmp byte [esi + 0x6d], 0
mov eax, dword [esi]
mov eax, dword [eax]
je 0x466a06
push edi
mov ecx, esi
call eax
mov byte [esi + 0x6c], al
jmp 0x466a29
lea ecx, [ebp - 0x254]
push ecx
mov ecx, esi
call eax
mov byte [esi + 0x6c], al
test al, al
je 0x466a29
mov eax, dword [ebp - 0x254]
test eax, eax
je 0x466a29
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esi + 0x6c]
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.00544516
mov esp, ebp
pop ebp
ret 8