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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x69c
mov eax, dword [0x43fdf0]
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 0x407560
push str.CSetupDecompressPage::CreateShortcut__SHGetSpecialFolderLocation_fail.
call fcn.004010c0
add esp, 4
jmp 0x407c27
lea ecx, [ebp - 0x648]
push ecx
mov edx, dword [ebp - 0x668]
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x40758a
push str.CSetupDecompressPage::CreateShortcut__SHGetPathFromIDList_fail.
call fcn.004010c0
add esp, 4
jmp 0x407c27
lea eax, [ebp - 0x65c]
push eax
push 0x4396e8
push 1
push 0
push 0x439708
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x654], eax
cmp dword [ebp - 0x654], 0
jge 0x4075da
push str.CSetupDecompressPage::CreateShortcut__CoCreateInstance_fail.
call fcn.004010c0
add esp, 4
mov ecx, dword [ebp - 0x65c]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x65c]
push eax
mov ecx, dword [edx + 8]
call ecx
jmp 0x407c27
push 0x4359b4
push 0x4359d4
push 0x441210
lea edx, [ebp - 0x66c]
push edx
call fcn.00408280
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.00408280
lea ecx, [ebp - 0x66c]
call fcn.00403160
lea ecx, [ebp - 0x22c]
call fcn.00412ea0
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.00420280
add esp, 4
mov ecx, eax
call fcn.00401550
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.00401130
lea ecx, [ebp - 8]
push ecx
push 0x4396f8
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 0x4076cd
push 0x4359d8
call fcn.004010c0
add esp, 4
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.00403160
jmp 0x407c27
lea edx, [ebp - 0x648]
push edx
lea ecx, [ebp - 0x658]
call fcn.00404880
push 0x435a50
lea ecx, [ebp - 0x658]
call fcn.00404920
push 0x435a54
lea ecx, [ebp - 0x658]
call fcn.00404920
push 0x435a60
lea ecx, [ebp - 0x658]
call fcn.00404920
push 2
lea ecx, [ebp - 0x658]
call fcn.00412ea0
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 0x407790
push 0x435a70
call fcn.004010c0
add esp, 4
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.00403160
lea ecx, [ebp - 0x22c]
call fcn.00403160
jmp 0x407c27
lea ecx, [ebp - 0x438]
push ecx
mov edx, dword [ebp - 0x660]
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x4077f2
push 0x435b20
call fcn.004010c0
add esp, 4
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.00403160
lea ecx, [ebp - 0x22c]
call fcn.00403160
jmp 0x407c27
lea edx, [ebp - 0x64c]
push edx
push 0xb
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jge 0x407851
push str.CSetupDecompressPage::CreateShortcut__SHGetSpecialFolderLocation_fail_after_ppf__Save.
call fcn.004010c0
add esp, 4
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.00403160
lea ecx, [ebp - 0x22c]
call fcn.00403160
jmp 0x407c27
lea edx, [ebp - 0x218]
push edx
mov eax, dword [ebp - 0x64c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x4078b3
push str.CSetupDecompressPage::CreateShortcut__SHGetPathFromIDList_fail_after_ppf__Save.
call fcn.004010c0
add esp, 4
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.00403160
lea ecx, [ebp - 0x22c]
call fcn.00403160
jmp 0x407c27
lea eax, [ebp - 0x438]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00404880
push 0x435d10
lea ecx, [ebp - 0x21c]
call fcn.00404920
push 0x435d14
lea ecx, [ebp - 0x21c]
call fcn.00404920
push 0
lea ecx, [ebp - 0x21c]
call fcn.00412ea0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x435d1c
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x228]
push edx
call fcn.00408280
push 0x435d20
lea ecx, [ebp - 0x228]
call fcn.00404920
push 0x435d2c
lea ecx, [ebp - 0x228]
call fcn.00404920
push 2
lea ecx, [ebp - 0x228]
call fcn.00412ea0
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.00404880
push 0x435d38
lea ecx, [ebp - 0x43c]
call fcn.00404920
push 0x435d3c
lea ecx, [ebp - 0x43c]
call fcn.00404920
push 0x435d48
lea ecx, [ebp - 0x43c]
call fcn.00404920
push 2
lea ecx, [ebp - 0x43c]
call fcn.00412ea0
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.004034f0
push 0xf2
lea ecx, [ebp - 0x664]
call fcn.00403690
lea eax, [ebp - 0x664]
push eax
push 0x435d54
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x68c]
push edx
call fcn.00408280
push eax
lea eax, [ebp - 4]
push eax
call fcn.00408380
lea ecx, [ebp - 0x68c]
call fcn.00403160
push 0x435d58
lea ecx, [ebp - 4]
call fcn.00404920
push 0x435d64
lea ecx, [ebp - 4]
call fcn.00404920
push str.Uninstall.exe
push 0x435d8c
push 0x441210
lea ecx, [ebp - 0x690]
push ecx
call fcn.00408280
push eax
lea edx, [ebp - 0x694]
push edx
call fcn.00408280
mov ecx, eax
call fcn.00412ea0
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.00403160
lea ecx, [ebp - 0x690]
call fcn.00403160
push 2
lea ecx, [ebp - 4]
call fcn.00412ea0
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 0x441210
lea ecx, [ebp - 0x224]
call fcn.00402c10
push 0x435d90
lea ecx, [ebp - 0x224]
call fcn.00404920
push 0x435d94
lea ecx, [ebp - 0x224]
call fcn.00404920
push str.yygame_imagegameicon.ico
lea ecx, [ebp - 0x698]
call fcn.00408580
lea edx, [ebp - 0x698]
push edx
lea ecx, [ebp - 0x224]
call fcn.00408230
lea ecx, [ebp - 0x698]
call fcn.00403160
push str.yy:__join:lobby_gameabdefault_
lea ecx, [ebp - 0x650]
call fcn.00404880
lea ecx, [ebp - 0x650]
call fcn.00412ea0
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.00412ea0
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.00404880
push 0x435e00
lea ecx, [ebp - 0x220]
call fcn.00404920
push 0x435e04
lea ecx, [ebp - 0x220]
call fcn.00404920
push str..lnk
lea ecx, [ebp - 0x220]
call fcn.00404920
push 2
lea ecx, [ebp - 0x220]
call fcn.00412ea0
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.00403160
lea ecx, [ebp - 0x650]
call fcn.00403160
lea ecx, [ebp - 0x224]
call fcn.00403160
lea ecx, [ebp - 4]
call fcn.00403160
lea ecx, [ebp - 0x664]
call fcn.00403160
lea ecx, [ebp - 0x43c]
call fcn.00403160
lea ecx, [ebp - 0x228]
call fcn.00403160
lea ecx, [ebp - 0x21c]
call fcn.00403160
lea ecx, [ebp - 0x658]
call fcn.00403160
lea ecx, [ebp - 0x22c]
call fcn.00403160
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00422af0
mov esp, ebp
pop ebp
ret