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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x578edb
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x5df3f4]
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 0x45c431
cmp word [edi], 0
jne 0x45c443
cmp dword [esi + 0x48], 8
lea edi, [esi + 0x34]
mov byte [ebp - 0x249], 1
jb 0x45c443
mov edi, dword [edi]
test edx, edx
je 0x45c472
cmp word [edx], 0
je 0x45c472
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45c452
sub ecx, ebx
lea ebx, [esi + 0x4c]
sar ecx, 1
push ecx
push edx
mov ecx, ebx
call fcn.0044d430
jmp 0x45c5c0
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x45c4bf
cmp word [ebp - 0x218], 0
jne 0x45c496
xor edx, edx
jmp 0x45c4af
lea edx, [ebp - 0x218]
lea ecx, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x45c4a0
sub edx, ecx
sar edx, 1
push edx
lea eax, [ebp - 0x218]
lea ecx, [esi + 0x4c]
push eax
call fcn.0044d430
cmp dword [esi + 0x60], 8
lea ebx, [esi + 0x4c]
jb 0x45c4cc
mov edx, dword [ebx]
jmp 0x45c4ce
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 0x45c4f4
xor ecx, ecx
jmp 0x45c513
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x258], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45c500
sub ecx, dword [ebp - 0x258]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x230]
call fcn.0044d430
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 0x45c562
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.0044d810
cmp byte [ebp - 0x24a], 0
jne 0x45c5c0
cmp dword [ebx + 0x14], 8
jb 0x45c575
mov eax, dword [ebx]
jmp 0x45c577
mov eax, ebx
push eax
lea ecx, [ebp - 0x230]
call fcn.0044d0f0
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 0x45c5c0
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.0044d810
cmp byte [ebp - 0x249], 0
jne 0x45c641
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
cmp word [edi], ax
jne 0x45c5ef
xor ecx, ecx
jmp 0x45c603
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45c5f4
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x230]
call fcn.0044d430
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 0x45c648
mov byte [ebp - 0x249], 0
test byte [ebp - 0x250], 1
je 0x45c66f
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x45c66f
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.0044d810
cmp byte [ebp - 0x249], 0
je 0x45c683
mov byte [esi + 0x6c], 0
xor al, al
jmp 0x45c79c
xor eax, eax
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
cmp word [edi], ax
jne 0x45c6a9
xor ecx, ecx
jmp 0x45c6bf
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45c6b0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x248]
call fcn.0044d430
lea edx, [ebp - 0x248]
mov dword [ebp - 4], 0
mov ecx, ebx
call fcn.00464560
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x234]
mov byte [ebp - 0x24a], al
cmp ecx, 8
jb 0x45c711
inc ecx
push ecx
push dword [ebp - 0x248]
lea ecx, [ebp - 0x248]
call fcn.0044d810
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 0x45c737
mov byte [esi + 0x6c], cl
jmp 0x45c79c
mov eax, dword [esi + 0x68]
lea edi, [esi + 0x68]
test eax, eax
je 0x45c74e
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.00464970
cmp byte [esi + 0x6d], 0
mov eax, dword [esi]
mov eax, dword [eax]
je 0x45c776
push edi
mov ecx, esi
call eax
mov byte [esi + 0x6c], al
jmp 0x45c799
lea ecx, [ebp - 0x254]
push ecx
mov ecx, esi
call eax
mov byte [esi + 0x6c], al
test al, al
je 0x45c799
mov eax, dword [ebp - 0x254]
test eax, eax
je 0x45c799
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.0050ad85
mov esp, ebp
pop ebp
ret 8