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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x69c
mov eax, dword [0x43ce30]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x69c], ecx
lea eax, [ebp - 0x668]
push eax
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jge 0x405eb3
jmp 0x4064ff
lea ecx, [ebp - 0x648]
push ecx
mov edx, dword [ebp - 0x668]
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x405ed0
jmp 0x4064ff
lea eax, [ebp - 0x65c]
push eax
push 0x4371d8
push 1
push 0
push 0x4371f8
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x654], eax
cmp dword [ebp - 0x654], 0
jge 0x405f13
mov ecx, dword [ebp - 0x65c]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x65c]
push eax
mov ecx, dword [edx + 8]
call ecx
jmp 0x4064ff
push 0x433f04
push 0x433f24
push 0x43e210
lea edx, [ebp - 0x66c]
push edx
call fcn.00406ae0
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.00406ae0
lea ecx, [ebp - 0x66c]
call fcn.00401860
lea ecx, [ebp - 0x22c]
call fcn.004140e0
push eax
mov ecx, dword [ebp - 0x65c]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x65c]
push eax
mov ecx, dword [edx + 0x50]
call ecx
lea edx, [ebp - 0x688]
push edx
call fcn.0041eeb0
add esp, 4
mov ecx, eax
call fcn.00407350
push eax
mov eax, dword [ebp - 0x65c]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x65c]
push edx
mov eax, dword [ecx + 0x24]
call eax
lea ecx, [ebp - 0x688]
call fcn.00407330
lea ecx, [ebp - 8]
push ecx
push 0x4371e8
mov edx, dword [ebp - 0x65c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x65c]
push ecx
mov edx, dword [eax]
call edx
mov dword [ebp - 0x654], eax
cmp dword [ebp - 0x654], 0
jge 0x405ff9
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ecx + 8]
call eax
mov ecx, dword [ebp - 0x65c]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x65c]
push eax
mov ecx, dword [edx + 8]
call ecx
lea ecx, [ebp - 0x22c]
call fcn.00401860
jmp 0x4064ff
lea edx, [ebp - 0x648]
push edx
lea ecx, [ebp - 0x658]
call fcn.004030d0
push 0x433f28
lea ecx, [ebp - 0x658]
call fcn.00403170
push 0x433f2c
lea ecx, [ebp - 0x658]
call fcn.00403170
push 0x433f38
lea ecx, [ebp - 0x658]
call fcn.00403170
push 2
lea ecx, [ebp - 0x658]
call fcn.004140e0
push eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ecx + 0x18]
call eax
mov dword [ebp - 0x654], eax
lea ecx, [ebp - 0x660]
push ecx
push 2
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jge 0x4060af
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [eax + 8]
call edx
mov eax, dword [ebp - 0x65c]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x65c]
push edx
mov eax, dword [ecx + 8]
call eax
lea ecx, [ebp - 0x658]
call fcn.00401860
lea ecx, [ebp - 0x22c]
call fcn.00401860
jmp 0x4064ff
lea ecx, [ebp - 0x438]
push ecx
mov edx, dword [ebp - 0x660]
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x406104
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ecx + 8]
call eax
mov ecx, dword [ebp - 0x65c]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x65c]
push eax
mov ecx, dword [edx + 8]
call ecx
lea ecx, [ebp - 0x658]
call fcn.00401860
lea ecx, [ebp - 0x22c]
call fcn.00401860
jmp 0x4064ff
lea edx, [ebp - 0x64c]
push edx
push 0xb
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jge 0x406156
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ecx + 8]
call eax
mov ecx, dword [ebp - 0x65c]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x65c]
push eax
mov ecx, dword [edx + 8]
call ecx
lea ecx, [ebp - 0x658]
call fcn.00401860
lea ecx, [ebp - 0x22c]
call fcn.00401860
jmp 0x4064ff
lea edx, [ebp - 0x218]
push edx
mov eax, dword [ebp - 0x64c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x4061ab
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [edx + 8]
call ecx
mov edx, dword [ebp - 0x65c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x65c]
push ecx
mov edx, dword [eax + 8]
call edx
lea ecx, [ebp - 0x658]
call fcn.00401860
lea ecx, [ebp - 0x22c]
call fcn.00401860
jmp 0x4064ff
lea eax, [ebp - 0x438]
push eax
lea ecx, [ebp - 0x21c]
call fcn.004030d0
push 0x433f44
lea ecx, [ebp - 0x21c]
call fcn.00403170
push 0x433f48
lea ecx, [ebp - 0x21c]
call fcn.00403170
push 0
lea ecx, [ebp - 0x21c]
call fcn.004140e0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x433f50
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x228]
push edx
call fcn.00406ae0
push 0x433f54
lea ecx, [ebp - 0x228]
call fcn.00403170
push 0x433f60
lea ecx, [ebp - 0x228]
call fcn.00403170
push 2
lea ecx, [ebp - 0x228]
call fcn.004140e0
push eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ecx + 0x18]
call eax
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x43c]
call fcn.004030d0
push 0x433f6c
lea ecx, [ebp - 0x43c]
call fcn.00403170
push 0x433f70
lea ecx, [ebp - 0x43c]
call fcn.00403170
push 0x433f7c
lea ecx, [ebp - 0x43c]
call fcn.00403170
push 2
lea ecx, [ebp - 0x43c]
call fcn.004140e0
push eax
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [eax + 0x18]
call edx
lea ecx, [ebp - 0x664]
call fcn.00401bf0
push 0xf2
lea ecx, [ebp - 0x664]
call fcn.00401d90
lea eax, [ebp - 0x664]
push eax
push 0x433f88
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x68c]
push edx
call fcn.00406ae0
push eax
lea eax, [ebp - 4]
push eax
call fcn.00406bc0
lea ecx, [ebp - 0x68c]
call fcn.00401860
push 0x433f8c
lea ecx, [ebp - 4]
call fcn.00403170
push 0x433f98
lea ecx, [ebp - 4]
call fcn.00403170
push str.Uninstall.exe
push 0x433fc0
push 0x43e210
lea ecx, [ebp - 0x690]
push ecx
call fcn.00406ae0
push eax
lea edx, [ebp - 0x694]
push edx
call fcn.00406ae0
mov ecx, eax
call fcn.004140e0
push eax
mov eax, dword [ebp - 0x65c]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x65c]
push edx
mov eax, dword [ecx + 0x50]
call eax
lea ecx, [ebp - 0x694]
call fcn.00401860
lea ecx, [ebp - 0x690]
call fcn.00401860
push 2
lea ecx, [ebp - 4]
call fcn.004140e0
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [edx + 0x18]
call ecx
push 0x43e210
lea ecx, [ebp - 0x224]
call fcn.00401310
push str.yygame_imagegameicon.ico
lea ecx, [ebp - 0x698]
call fcn.00406dc0
lea edx, [ebp - 0x698]
push edx
lea ecx, [ebp - 0x224]
call fcn.00406a90
lea ecx, [ebp - 0x698]
call fcn.00401860
push str.yy:__join:lobby_gameabdefault_
lea ecx, [ebp - 0x650]
call fcn.004030d0
lea ecx, [ebp - 0x650]
call fcn.004140e0
push eax
mov eax, dword [ebp - 0x65c]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x65c]
push edx
mov eax, dword [ecx + 0x50]
call eax
push 0
lea ecx, [ebp - 0x224]
call fcn.004140e0
push eax
mov ecx, dword [ebp - 0x65c]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x65c]
push eax
mov ecx, dword [edx + 0x44]
call ecx
lea edx, [ebp - 0x648]
push edx
lea ecx, [ebp - 0x220]
call fcn.004030d0
push 0x434020
lea ecx, [ebp - 0x220]
call fcn.00403170
push 0x434024
lea ecx, [ebp - 0x220]
call fcn.00403170
push str..lnk
lea ecx, [ebp - 0x220]
call fcn.00403170
push 2
lea ecx, [ebp - 0x220]
call fcn.004140e0
push eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ecx + 0x18]
call eax
mov dword [ebp - 0x654], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [edx + 8]
call ecx
mov edx, dword [ebp - 0x65c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x65c]
push ecx
mov edx, dword [eax + 8]
call edx
lea ecx, [ebp - 0x220]
call fcn.00401860
lea ecx, [ebp - 0x650]
call fcn.00401860
lea ecx, [ebp - 0x224]
call fcn.00401860
lea ecx, [ebp - 4]
call fcn.00401860
lea ecx, [ebp - 0x664]
call fcn.00401860
lea ecx, [ebp - 0x43c]
call fcn.00401860
lea ecx, [ebp - 0x228]
call fcn.00401860
lea ecx, [ebp - 0x21c]
call fcn.00401860
lea ecx, [ebp - 0x658]
call fcn.00401860
lea ecx, [ebp - 0x22c]
call fcn.00401860
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00422540
mov esp, ebp
pop ebp
ret