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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60ffab
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x69f000]
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 ebx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x250], 0
mov byte [ebp - 0x249], 0
test ebx, ebx
je 0x471841
cmp word [ebx], 0
jne 0x471853
cmp dword [edi + 0x48], 8
lea ebx, [edi + 0x34]
mov byte [ebp - 0x249], 1
jb 0x471853
mov ebx, dword [ebx]
test edx, edx
je 0x471882
cmp word [edx], 0
je 0x471882
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x471862
sub ecx, esi
lea esi, [edi + 0x4c]
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.0040be20
jmp 0x471955
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test eax, eax
je 0x4718c4
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4718a1
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
lea esi, [edi + 0x4c]
push ecx
push eax
mov ecx, esi
call fcn.0040be20
jmp 0x4718c7
lea esi, [edi + 0x4c]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4718d1
mov eax, dword [esi]
push eax
lea ecx, [ebp - 0x230]
call fcn.0040bb30
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
lea ecx, [ebp - 0x230]
test eax, eax
jne 0x471950
call fcn.0040bd90
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x471911
mov eax, dword [esi]
push eax
lea ecx, [ebp - 0x230]
call fcn.0040bb30
mov dword [ebp - 4], 0
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
push 0
cmovae eax, dword [ebp - 0x230]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.0040bd90
cmp byte [ebp - 0x249], 0
jne 0x47199b
push ebx
lea ecx, [ebp - 0x230]
call fcn.0040bb30
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 0x4719a2
mov byte [ebp - 0x249], 0
test byte [ebp - 0x250], 1
je 0x4719b6
lea ecx, [ebp - 0x230]
call fcn.0040bd90
cmp byte [ebp - 0x249], 0
jne 0x471a89
push ebx
lea ecx, [ebp - 0x248]
call fcn.0040bb30
lea edx, [ebp - 0x248]
mov dword [ebp - 4], 1
mov ecx, esi
call fcn.00471d00
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 0xffffffff
mov bl, al
call fcn.0040bd90
test bl, bl
je 0x471a89
mov eax, dword [edi + 0x68]
lea ebx, [edi + 0x68]
test eax, eax
je 0x471a16
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [ebx], 0
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x254], 0
jb 0x471a28
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edx, eax
lea esi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x471a34
sub edx, esi
lea ecx, [edi + 0x34]
sar edx, 1
push edx
push eax
call fcn.0040be20
cmp byte [edi + 0x6d], 0
mov eax, dword [edi]
mov eax, dword [eax]
je 0x471a61
push ebx
mov ecx, edi
call eax
mov byte [edi + 0x6c], al
jmp 0x471a8f
lea ecx, [ebp - 0x254]
push ecx
mov ecx, edi
call eax
mov byte [edi + 0x6c], al
test al, al
je 0x471a84
mov eax, dword [ebp - 0x254]
test eax, eax
je 0x471a84
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, byte [edi + 0x6c]
jmp 0x471a8f
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.005d077b
mov esp, ebp
pop ebp
ret 8