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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58a8fb
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x5f11e4]
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 0x45ec21
cmp word [edi], 0
jne 0x45ec33
cmp dword [esi + 0x48], 8
lea edi, [esi + 0x34]
mov byte [ebp - 0x249], 1
jb 0x45ec33
mov edi, dword [edi]
test edx, edx
je 0x45ec62
cmp word [edx], 0
je 0x45ec62
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45ec42
sub ecx, ebx
lea ebx, [esi + 0x4c]
sar ecx, 1
push ecx
push edx
mov ecx, ebx
call fcn.0044c2c0
jmp 0x45edb0
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x45ecaf
cmp word [ebp - 0x218], 0
jne 0x45ec86
xor edx, edx
jmp 0x45ec9f
lea edx, [ebp - 0x218]
lea ecx, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x45ec90
sub edx, ecx
sar edx, 1
push edx
lea eax, [ebp - 0x218]
lea ecx, [esi + 0x4c]
push eax
call fcn.0044c2c0
cmp dword [esi + 0x60], 8
lea ebx, [esi + 0x4c]
jb 0x45ecbc
mov edx, dword [ebx]
jmp 0x45ecbe
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 0x45ece4
xor ecx, ecx
jmp 0x45ed03
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x258], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45ecf0
sub ecx, dword [ebp - 0x258]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x230]
call fcn.0044c2c0
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 0x45ed52
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.0044c9a0
cmp byte [ebp - 0x24a], 0
jne 0x45edb0
cmp dword [ebx + 0x14], 8
jb 0x45ed65
mov eax, dword [ebx]
jmp 0x45ed67
mov eax, ebx
push eax
lea ecx, [ebp - 0x230]
call fcn.0044bd60
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 0x45edb0
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.0044c9a0
cmp byte [ebp - 0x249], 0
jne 0x45ee31
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
cmp word [edi], ax
jne 0x45eddf
xor ecx, ecx
jmp 0x45edf3
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45ede4
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x230]
call fcn.0044c2c0
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 0x45ee38
mov byte [ebp - 0x249], 0
test byte [ebp - 0x250], 1
je 0x45ee5f
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x45ee5f
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.0044c9a0
cmp byte [ebp - 0x249], 0
je 0x45ee73
mov byte [esi + 0x6c], 0
xor al, al
jmp 0x45ef8c
xor eax, eax
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
cmp word [edi], ax
jne 0x45ee99
xor ecx, ecx
jmp 0x45eeaf
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45eea0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x248]
call fcn.0044c2c0
lea edx, [ebp - 0x248]
mov dword [ebp - 4], 0
mov ecx, ebx
call fcn.00466610
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x234]
mov byte [ebp - 0x24a], al
cmp ecx, 8
jb 0x45ef01
inc ecx
push ecx
push dword [ebp - 0x248]
lea ecx, [ebp - 0x248]
call fcn.0044c9a0
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 0x45ef27
mov byte [esi + 0x6c], cl
jmp 0x45ef8c
mov eax, dword [esi + 0x68]
lea edi, [esi + 0x68]
test eax, eax
je 0x45ef3e
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.00466a20
cmp byte [esi + 0x6d], 0
mov eax, dword [esi]
mov eax, dword [eax]
je 0x45ef66
push edi
mov ecx, esi
call eax
mov byte [esi + 0x6c], al
jmp 0x45ef89
lea ecx, [ebp - 0x254]
push ecx
mov ecx, esi
call eax
mov byte [esi + 0x6c], al
test al, al
je 0x45ef89
mov eax, dword [ebp - 0x254]
test eax, eax
je 0x45ef89
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.004feb45
mov esp, ebp
pop ebp
ret 8