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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6a0
mov eax, dword [0x43ce30]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x6a0], ecx
lea eax, [ebp - 0x668]
push eax
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jge 0x405fd3
jmp 0x40663c
lea ecx, [ebp - 0x648]
push ecx
mov edx, dword [ebp - 0x668]
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x405ff0
jmp 0x40663c
lea eax, [ebp - 0x65c]
push eax
push 0x4371e8
push 1
push 0
push 0x437208
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x654], eax
cmp dword [ebp - 0x654], 0
jge 0x406033
mov ecx, dword [ebp - 0x65c]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x65c]
push eax
mov ecx, dword [edx + 8]
call ecx
jmp 0x40663c
push 0x433f8c
push 0x433fac
push 0x43e210
lea edx, [ebp - 0x66c]
push edx
call fcn.00406c00
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.00406c00
lea ecx, [ebp - 0x66c]
call fcn.00401860
lea ecx, [ebp - 0x22c]
call fcn.00411410
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.0041e7b0
add esp, 4
mov ecx, eax
call fcn.004074a0
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.00407480
lea ecx, [ebp - 8]
push ecx
push 0x4371f8
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 0x406119
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 0x40663c
lea edx, [ebp - 0x648]
push edx
lea ecx, [ebp - 0x658]
call fcn.00402fc0
push 0x433fb0
lea ecx, [ebp - 0x658]
call fcn.00403060
push 0x433fb4
lea ecx, [ebp - 0x658]
call fcn.00403060
push 0x433fc0
lea ecx, [ebp - 0x658]
call fcn.00403060
push 2
lea ecx, [ebp - 0x658]
call fcn.00411410
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 0x4061cf
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 0x40663c
lea ecx, [ebp - 0x438]
push ecx
mov edx, dword [ebp - 0x660]
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x406224
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 0x40663c
lea edx, [ebp - 0x64c]
push edx
push 0xb
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jge 0x406276
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 0x40663c
lea edx, [ebp - 0x218]
push edx
mov eax, dword [ebp - 0x64c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x4062cb
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 0x40663c
lea eax, [ebp - 0x438]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00402fc0
push 0x433fcc
lea ecx, [ebp - 0x21c]
call fcn.00403060
push 0x433fd0
lea ecx, [ebp - 0x21c]
call fcn.00403060
push 0
lea ecx, [ebp - 0x21c]
call fcn.00411410
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x433fd8
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x228]
push edx
call fcn.00406c00
push 0x433fdc
lea ecx, [ebp - 0x228]
call fcn.00403060
push 0x433fe8
lea ecx, [ebp - 0x228]
call fcn.00403060
push 2
lea ecx, [ebp - 0x228]
call fcn.00411410
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.00402fc0
push 0x433ff4
lea ecx, [ebp - 0x43c]
call fcn.00403060
push 0x433ff8
lea ecx, [ebp - 0x43c]
call fcn.00403060
push 0x434004
lea ecx, [ebp - 0x43c]
call fcn.00403060
push 2
lea ecx, [ebp - 0x43c]
call fcn.00411410
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 0x434010
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x68c]
push edx
call fcn.00406c00
push eax
lea eax, [ebp - 4]
push eax
call fcn.00406ce0
lea ecx, [ebp - 0x68c]
call fcn.00401860
push 0x434014
lea ecx, [ebp - 4]
call fcn.00403060
push 0x434020
lea ecx, [ebp - 4]
call fcn.00403060
push str.Uninstall.exe
push 0x434048
push 0x43e210
lea ecx, [ebp - 0x690]
push ecx
call fcn.00406c00
push eax
lea edx, [ebp - 0x694]
push edx
call fcn.00406c00
mov ecx, eax
call fcn.00411410
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.00411410
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.00406ee0
lea edx, [ebp - 0x698]
push edx
lea ecx, [ebp - 0x224]
call fcn.00406bd0
lea ecx, [ebp - 0x698]
call fcn.00401860
push str.yy:__join:lobby_gameabdefault_
lea ecx, [ebp - 0x650]
call fcn.00402fc0
lea ecx, [ebp - 0x650]
call fcn.00411410
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.00411410
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.00402fc0
push 0x4340a8
lea ecx, [ebp - 0x220]
call fcn.00403060
push 0x4340ac
lea ecx, [ebp - 0x69c]
call fcn.00406ee0
lea eax, [ebp - 0x69c]
push eax
lea ecx, [ebp - 0x220]
call fcn.00406bd0
lea ecx, [ebp - 0x69c]
call fcn.00401860
push str..lnk
lea ecx, [ebp - 0x220]
call fcn.00403060
push 2
lea ecx, [ebp - 0x220]
call fcn.00411410
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
mov dword [ebp - 0x654], eax
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 - 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.00422550
mov esp, ebp
pop ebp
ret