Function at 0x404740
Capabilities:
Create directory
Create shortcut via ishelllink
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4496e8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x460590]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea eax, [esp + 0x1c]
push eax
push 0x450f4c
xor ebx, ebx
push 1
push ebx
mov dword [esp + 0x48], 1
push 0x450f5c
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
je 0x4047e8
mov byte [esp + 0x38], bl
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4047b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4047e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x404aef
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
push 0x450f8c
push eax
mov eax, dword [ecx]
call eax
cmp eax, ebx
jne 0x404a79
call fcn.00413d88
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40481f
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x24], ebp
lea ecx, [esp + 0x18]
push ecx
push 0xb
mov byte [esp + 0x40], 2
push ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x40485d
lea ebx, [esp + 0x18]
lea esi, [esp + 0x24]
call fcn.00411510
mov ebp, dword [esp + 0x24]
xor ebx, ebx
call fcn.00413d88
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x404877
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push 0x4521c8
push ebp
lea ecx, [esp + 0x20]
push 0x4521d4
push ecx
mov byte [esp + 0x48], 3
call fcn.004022d0
mov edi, dword [esp + 0x28]
add esp, 0xc
lea eax, [edi - 0x10]
mov dword [esp + 0x2c], esp
mov esi, esp
push eax
call fcn.00402190
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00411260
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
add esp, 4
cmp eax, ebx
jne 0x4048d5
push ebx
push edi
call esi
push 1
push 0x451f4c
lea ecx, [esp + 0x20]
call fcn.00405e30
push 4
push 0x45200c
lea ecx, [esp + 0x20]
call fcn.00405e30
mov edx, dword [esp + 0x18]
push ebx
push edx
call esi
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x44]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x50]
call eax
mov ecx, dword [esp + 0x48]
push ecx
push 0x45200c
push 0x4521c8
push ebp
lea edx, [esp + 0x28]
push 0x4521e8
push edx
call fcn.004022d0
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x30]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
add esp, 0x18
push 1
push esi
push eax
call edx
push 3
push ecx
add esi, 0xfffffff0
mov dword [esp + 0x30], esp
mov edi, esp
push esi
call fcn.00402190
add eax, 0x10
mov dword [edi], eax
mov eax, dword [esp + 0x4c]
add esp, 4
push eax
call fcn.00404e70
cmp dword [esp + 0x4c], ebx
je 0x404a37
call fcn.00413d88
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40498b
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x28], edi
lea ecx, [esp + 0x4c]
push ecx
push 0x19
mov byte [esp + 0x40], 4
push ebx
mov dword [esp + 0x58], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x4049c7
lea ebx, [esp + 0x4c]
lea esi, [esp + 0x28]
call fcn.00411510
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x48]
push edx
push edi
lea eax, [esp + 0x20]
push str._s_s
push eax
call fcn.004022d0
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x28]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
add esp, 0x10
push 1
push esi
push eax
call edx
push 3
push ecx
add esi, 0xfffffff0
mov dword [esp + 0x34], esp
mov ebx, esp
push esi
call fcn.00402190
add eax, 0x10
mov dword [ebx], eax
mov eax, dword [esp + 0x4c]
add esp, 4
push eax
call fcn.00404e70
lea eax, [edi - 0x10]
mov byte [esp + 0x38], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404a37
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], 2
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404a55
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
add ebp, 0xfffffff0
mov byte [esp + 0x38], 1
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x404a85
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebp
call eax
jmp 0x404a85
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404ac2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404aea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 0x10