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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453b73
mov eax, dword fs:[0]
push eax
sub esp, 0xb38
mov eax, dword [0x468740]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0xb34]
call fcn.004035e0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xad0]
mov byte [ebp - 0xb38], 0
push dword [ebp - 0xb38]
call fcn.004075d0
lea eax, [ebp - 0xad0]
mov byte [ebp - 4], 1
push eax
lea edx, [ebp - 0xb34]
lea ecx, [ebp - 0xb18]
call fcn.00402000
add esp, 8
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0xabc]
cmp ecx, 7
jbe 0x40518a
mov edx, dword [ebp - 0xad0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405180
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405d15
push ecx
push edx
call fcn.0043c29e
add esp, 8
xor eax, eax
mov dword [ebp - 0xac0], 0
mov byte [ebp - 0xb38], al
lea ecx, [ebp - 0xab8]
push dword [ebp - 0xb38]
mov edx, 0x462560
mov dword [ebp - 0xabc], 7
mov word [ebp - 0xad0], ax
call fcn.00407520
lea eax, [ebp - 0xab8]
mov byte [ebp - 4], 4
push eax
lea edx, [ebp - 0xb34]
lea ecx, [ebp - 0xb00]
call fcn.00402000
add esp, 8
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0xaa4]
cmp ecx, 7
jbe 0x405226
mov edx, dword [ebp - 0xab8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40521c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405d1a
push ecx
push edx
call fcn.0043c29e
add esp, 8
xor eax, eax
mov dword [ebp - 0xaa8], 0
push eax
push eax
mov dword [ebp - 0xaa4], 7
mov word [ebp - 0xab8], ax
call dword [sym.imp.ole32.dll_CoInitializeEx]
lea ecx, [ebp - 0xb00]
call fcn.00403110
test al, al
jne 0x4053ea
push 0
push 0
push dword [0x46c9ec]
push dword [0x46c9dc]
call dword [sym.imp.USER32.dll_PostThreadMessageA]
push 0x800
lea eax, [ebp - 0xa98]
push 0
push eax
call fcn.0043d910
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0xa98]
add esp, 0xc
push 0x400
push eax
push 0x87
push dword [0x46c9f0]
call esi
push 0x40
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.0043d910
add esp, 0xc
lea eax, [ebp - 0x50]
push 0x20
push eax
push 0x7c
push dword [0x46c9f0]
call esi
push 0x10
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0xa98]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 0xaec]
cmp ecx, 7
jbe 0x40531e
mov edx, dword [ebp - 0xb00]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405314
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405d2e
push ecx
push edx
call fcn.0043c29e
add esp, 8
mov ecx, dword [ebp - 0xb04]
xor eax, eax
mov dword [ebp - 0xaf0], 0
mov dword [ebp - 0xaec], 7
mov word [ebp - 0xb00], ax
cmp ecx, 7
jbe 0x40537b
mov edx, dword [ebp - 0xb18]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405371
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405d2e
push ecx
push edx
call fcn.0043c29e
add esp, 8
mov ecx, dword [ebp - 0xb20]
xor eax, eax
mov dword [ebp - 0xb08], 0
mov dword [ebp - 0xb04], 7
mov word [ebp - 0xb18], ax
cmp ecx, 7
jbe 0x405700
mov edx, dword [ebp - 0xb34]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4056f6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405d2e
push ecx
push edx
call fcn.0043c29e
add esp, 8
mov eax, 1
jmp 0x405cfa
call fcn.00404de0
mov esi, eax
test esi, esi
je 0x405433
push str.WoW_process_is_not_finished_yet__waiting_for_exit
call fcn.004037d0
add esp, 4
push esi
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x405433
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Waiting_is_over__proceeding
call fcn.004037d0
add esp, 4
mov edi, dword [sym.imp.USER32.dll_PostThreadMessageA]
push 0
push 5
push dword [0x46c9f4]
push dword [0x46c9dc]
call edi
push 0
push 3
push dword [0x46c9f8]
push dword [0x46c9dc]
call edi
push 0
push 0xa
push dword [0x46c9f4]
push dword [0x46c9dc]
call edi
push 0
push 0xf
push dword [0x46c9f4]
push dword [0x46c9dc]
call edi
push str.Clean_WDB_Cache
call fcn.004037d0
add esp, 4
call fcn.00403f00
push 0
push 0x14
push dword [0x46c9f4]
push dword [0x46c9dc]
call edi
push str.Remove_LFT_Addon
call fcn.004037d0
add esp, 4
call fcn.004040a0
push 0
push 0x19
push dword [0x46c9f4]
push dword [0x46c9dc]
call edi
push 0
push 4
push dword [0x46c9f8]
push dword [0x46c9dc]
call edi
lea eax, [ebp - 0xb18]
push eax
lea ecx, [ebp - 0xae8]
call fcn.00406280
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0xae8]
cmp dword [ebp - 0xad4], 7
cmova eax, dword [ebp - 0xae8]
push eax
push str.Trying_open_downloaded_path_file___s_
call fcn.004037d0
add esp, 8
mov dword [ebp - 0xaa0], 0
cmp dword [ebp - 0xad4], 7
lea ecx, [ebp - 0xaa0]
lea eax, [ebp - 0xae8]
cmova eax, dword [ebp - 0xae8]
push ecx
push 0
push 0
push eax
call fcn.00407a20
test al, al
jne 0x405550
xor eax, eax
mov dword [ebp - 0xaa0], eax
jmp 0x405556
mov eax, dword [ebp - 0xaa0]
mov byte [ebp - 4], 0xf
test eax, eax
jne 0x40570a
push eax
push eax
push dword [0x46c9ec]
push dword [0x46c9dc]
call edi
cmp dword [ebp - 0xad4], 7
lea eax, [ebp - 0xae8]
cmova eax, dword [ebp - 0xae8]
push eax
push str.ERROR:_Cant_open_patch___s_
call fcn.004037d0
add esp, 8
call fcn.00403d30
mov eax, dword [ebp - 0xaa0]
test eax, eax
je 0x4055a9
push eax
call fcn.004078d0
mov ecx, dword [ebp - 0xad4]
cmp ecx, 7
jbe 0x4055e9
mov edx, dword [ebp - 0xae8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4055df
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405d29
push ecx
push edx
call fcn.0043c29e
add esp, 8
mov ecx, dword [ebp - 0xaec]
xor eax, eax
mov dword [ebp - 0xad8], 0
mov dword [ebp - 0xad4], 7
mov word [ebp - 0xae8], ax
cmp ecx, 7
jbe 0x405646
mov edx, dword [ebp - 0xb00]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40563c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405d29
push ecx
push edx
call fcn.0043c29e
add esp, 8
mov ecx, dword [ebp - 0xb04]
xor eax, eax
mov dword [ebp - 0xaf0], 0
mov dword [ebp - 0xaec], 7
mov word [ebp - 0xb00], ax
cmp ecx, 7
jbe 0x4056a3
mov edx, dword [ebp - 0xb18]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405699
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405d29
push ecx
push edx
call fcn.0043c29e
add esp, 8
mov ecx, dword [ebp - 0xb20]
xor eax, eax
mov dword [ebp - 0xb08], 0
mov dword [ebp - 0xb04], 7
mov word [ebp - 0xb18], ax
cmp ecx, 7
jbe 0x405700
mov edx, dword [ebp - 0xb34]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4056f6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405d29
push ecx
push edx
call fcn.0043c29e
add esp, 8
mov eax, 1
jmp 0x405cfa
cmp dword [ebp - 0xad4], 7
lea eax, [ebp - 0xae8]
cmova eax, dword [ebp - 0xae8]
push eax
push str.Opened___s_
call fcn.004037d0
add esp, 8
mov byte [ebp - 0xa99], 0
lea eax, [ebp - 0xae8]
mov byte [ebp - 0xa9a], 0
mov dword [ebp - 0xb1c], eax
lea eax, [ebp - 0xaa0]
mov dword [ebp - 0xab0], eax
lea eax, [ebp - 0xb1c]
push 0
push 0x55
push dword [0x46c9f4]
mov dword [ebp - 0xaac], eax
lea eax, [ebp - 0xa99]
push dword [0x46c9dc]
mov dword [ebp - 0xaa8], eax
lea eax, [ebp - 0xa9a]
mov dword [ebp - 0xaa4], eax
call edi
push str.Datapatch_7.mpq
lea ecx, [ebp - 0xab0]
call fcn.00405d40
push 0
push 0x5a
push dword [0x46c9f4]
push dword [0x46c9dc]
call edi
push 0x462b34
lea ecx, [ebp - 0xab0]
call fcn.00405d40
push str.discord_game_sdk.dll
lea ecx, [ebp - 0xab0]
call fcn.00405d40
push 0x462b60
lea ecx, [ebp - 0xab0]
call fcn.00405d40
push 0
push 0x5f
push dword [0x46c9f4]
push dword [0x46c9dc]
call edi
push 0x462560
lea ecx, [ebp - 0xab0]
call fcn.00405d40
push str.Removing_WoWFoV.exe
call fcn.004037d0
mov byte [ebp - 0xb38], 0
lea ecx, [ebp - 0xad0]
push dword [ebp - 0xb38]
mov edx, str.WoWFoV.exe
call fcn.00407520
add esp, 8
lea ecx, [ebp - 0xad0]
mov byte [ebp - 4], 0x10
call fcn.004031b0
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0xabc]
mov byte [ebp - 0xb3d], al
cmp ecx, 7
jbe 0x40587f
mov edx, dword [ebp - 0xad0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405875
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405d1f
push ecx
push edx
call fcn.0043c29e
add esp, 8
cmp byte [ebp - 0xb3d], 0
mov ecx, str.WoWFoV.exe_removed
mov eax, str.WoWFoV.exe_not_removed__possibly_was_removed_earlier
cmovne eax, ecx
push eax
call fcn.004037d0
add esp, 4
push 0
push 0x63
push dword [0x46c9f4]
push dword [0x46c9dc]
call edi
push str.Creating_shortcut_link_of_launcher_to_user_desktop
call fcn.004037d0
add esp, 4
lea eax, [ebp - 0x298]
push eax
push 0
push 0
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x405b7b
xorps xmm0, xmm0
mov dword [ebp - 0xac0], eax
lea ecx, [ebp - 0x298]
mov dword [ebp - 0xabc], eax
movups xmmword [ebp - 0xad0], xmm0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4058f7
sub ecx, edx
lea eax, [ebp - 0x298]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xad0]
call fcn.00406c90
push 0x80
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 0x11
push 0
push eax
call fcn.0043d910
add esp, 0xc
lea eax, [ebp - 0x90]
push 0x40
push eax
push 0x89
push dword [0x46c9f0]
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x462ca8
lea ecx, [ebp - 0xad0]
call fcn.00406170
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0xad0]
call fcn.00406170
push 0x462cac
lea ecx, [ebp - 0xad0]
call fcn.00406170
lea eax, [ebp - 0x4a0]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xorps xmm0, xmm0
mov dword [ebp - 0xaa8], 0
lea ecx, [ebp - 0x4a0]
mov dword [ebp - 0xaa4], 0
movups xmmword [ebp - 0xab8], xmm0
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4059c0
sub ecx, edx
lea eax, [ebp - 0x4a0]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xab8]
call fcn.00406c90
push str.TurtleWoW.exe
lea ecx, [ebp - 0xab8]
mov byte [ebp - 4], 0x12
call fcn.00406170
cmp dword [ebp - 0xabc], 7
lea eax, [ebp - 0xad0]
lea esi, [ebp - 0xab8]
cmova eax, dword [ebp - 0xad0]
cmp dword [ebp - 0xaa4], 7
mov dword [ebp - 0xb44], eax
lea eax, [ebp - 0xb3c]
cmova esi, dword [ebp - 0xab8]
push eax
push 0x45bb00
push 1
push 0
push 0x45bb20
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x405acf
mov eax, dword [ebp - 0xb3c]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [ebp - 0xb3c]
push str.Turtle_WoW_Launcher
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov ecx, dword [ebp - 0xb3c]
lea edx, [ebp - 0xb38]
push edx
push 0x45bb10
push ecx
mov eax, dword [ecx]
call dword [eax]
test eax, eax
js 0x405ab3
mov ecx, dword [ebp - 0xb38]
push 1
push dword [ebp - 0xb44]
mov eax, dword [ecx]
push ecx
call dword [eax + 0x18]
mov ecx, dword [ebp - 0xb38]
mov esi, eax
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
test esi, esi
mov eax, str.PersistFile__Save_failed._Link_will_not_be_created
mov ecx, str.Link_created
cmovns eax, ecx
jmp 0x405ab8
mov eax, str.QueryInterface_IID_IPersistFile__failed._Link_will_not_be_created
push eax
call fcn.004037d0
mov eax, dword [ebp - 0xb3c]
add esp, 4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x405adc
push str.CoCreateInstance_failed_to_get_CLSID_ShellLink_interface._Link_will_not_be_created
call fcn.004037d0
add esp, 4
mov ecx, dword [ebp - 0xaa4]
cmp ecx, 7
jbe 0x405b1c
mov edx, dword [ebp - 0xab8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405b12
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405d24
push ecx
push edx
call fcn.0043c29e
add esp, 8
mov ecx, dword [ebp - 0xabc]
xor eax, eax
mov dword [ebp - 0xaa8], 0
mov dword [ebp - 0xaa4], 7
mov word [ebp - 0xab8], ax
cmp ecx, 7
jbe 0x405b88
mov edx, dword [ebp - 0xad0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405b6f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405d24
push ecx
push edx
call fcn.0043c29e
add esp, 8
jmp 0x405b88
push str.SHGetFolderPathW_failed_to_retrive_user_desktop_directory._Link_will_not_be_created
call fcn.004037d0
add esp, 4
mov eax, dword [ebp - 0xaa0]
test eax, eax
je 0x405b98
push eax
call fcn.004078d0
mov ecx, dword [ebp - 0xad4]
cmp ecx, 7
jbe 0x405bd8
mov edx, dword [ebp - 0xae8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405bce
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405d29
push ecx
push edx
call fcn.0043c29e
add esp, 8
push 0
push 5
push dword [0x46c9f8]
push dword [0x46c9dc]
call edi
push 0
push 0x64
push dword [0x46c9f4]
push dword [0x46c9dc]
call edi
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 0xaec]
cmp ecx, 7
jbe 0x405c42
mov edx, dword [ebp - 0xb00]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405c38
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405d2e
push ecx
push edx
call fcn.0043c29e
add esp, 8
mov ecx, dword [ebp - 0xb04]
xor eax, eax
mov dword [ebp - 0xaf0], 0
mov dword [ebp - 0xaec], 7
mov word [ebp - 0xb00], ax
cmp ecx, 7
jbe 0x405c9f
mov edx, dword [ebp - 0xb18]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405c95
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405d2e
push ecx
push edx
call fcn.0043c29e
add esp, 8
mov ecx, dword [ebp - 0xb20]
xor eax, eax
mov dword [ebp - 0xb08], 0
mov dword [ebp - 0xb04], 7
mov word [ebp - 0xb18], ax
cmp ecx, 7
jbe 0x405cf8
mov edx, dword [ebp - 0xb34]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405cee
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405d2e
push ecx
push edx
call fcn.0043c29e
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043c260
mov esp, ebp
pop ebp
ret
call fcn.0043fb9d
call fcn.0043fb9d
call fcn.0043fb9d
call fcn.0043fb9d
call fcn.0043fb9d
call fcn.0043fb9d
int3