Function at 0x51b260
Capabilities:
Check if file exists
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7a81a4
mov eax, dword fs:[0]
push eax
sub esp, 0xaf8
mov eax, dword [0x8cf144]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x8f0]
mov ebx, dword [ebp + 0xc]
push 0x8b5798
mov dword [ebp - 0xb00], eax
mov dword [ebp - 0xb04], 0
call fcn.004026c0
xor eax, eax
mov dword [ebp - 4], 0
push str.InstallConfig1
lea ecx, [ebp - 0xa28]
mov dword [ebp - 0xaf4], eax
xor esi, esi
mov dword [ebp - 0xae0], eax
mov dword [ebp - 0xad8], eax
xor edi, edi
mov dword [ebp - 0xae4], eax
mov dword [ebp - 0xae8], eax
mov dword [ebp - 0xaec], eax
mov dword [ebp - 0xafc], eax
mov dword [ebp - 0xaf8], eax
mov dword [ebp - 0xadc], eax
call fcn.004026c0
mov eax, dword [ebx]
lea ecx, [ebp - 0xa28]
push ecx
mov ecx, ebx
mov byte [ebp - 4], 1
mov eax, dword [eax + 0x1c]
call eax
lea ecx, [ebp - 0xa28]
mov dword [ebp - 0xad4], eax
mov byte [ebp - 4], 0
call fcn.00402680
mov eax, dword [ebp - 0xad4]
test eax, eax
je 0x51b346
cmp dword [eax + 0x14], 8
jb 0x51b344
mov edi, dword [eax]
jmp 0x51b346
mov edi, eax
push str.InstallConfig2
lea ecx, [ebp - 0xa40]
call fcn.004026c0
mov eax, dword [ebx]
lea ecx, [ebp - 0xa40]
push ecx
mov ecx, ebx
mov byte [ebp - 4], 2
mov eax, dword [eax + 0x1c]
call eax
lea ecx, [ebp - 0xa40]
mov dword [ebp - 0xad4], eax
mov byte [ebp - 4], 0
call fcn.00402680
mov eax, dword [ebp - 0xad4]
test eax, eax
je 0x51b397
cmp dword [eax + 0x14], 8
jb 0x51b391
mov eax, dword [eax]
mov dword [ebp - 0xae0], eax
push str.InstallConfig3
lea ecx, [ebp - 0xa58]
call fcn.004026c0
mov eax, dword [ebx]
lea ecx, [ebp - 0xa58]
push ecx
mov ecx, ebx
mov byte [ebp - 4], 3
mov eax, dword [eax + 0x1c]
call eax
lea ecx, [ebp - 0xa58]
mov dword [ebp - 0xad4], eax
mov byte [ebp - 4], 0
call fcn.00402680
mov eax, dword [ebp - 0xad4]
test eax, eax
je 0x51b3e8
cmp dword [eax + 0x14], 8
jb 0x51b3e2
mov eax, dword [eax]
mov dword [ebp - 0xad8], eax
push str.InstallConfig4
lea ecx, [ebp - 0xa70]
call fcn.004026c0
mov eax, dword [ebx]
lea ecx, [ebp - 0xa70]
push ecx
mov ecx, ebx
mov byte [ebp - 4], 4
mov eax, dword [eax + 0x1c]
call eax
lea ecx, [ebp - 0xa70]
mov dword [ebp - 0xad4], eax
mov byte [ebp - 4], 0
call fcn.00402680
mov eax, dword [ebp - 0xad4]
test eax, eax
je 0x51b439
cmp dword [eax + 0x14], 8
jb 0x51b433
mov eax, dword [eax]
mov dword [ebp - 0xae8], eax
push str.InstallConfig5
lea ecx, [ebp - 0xa88]
call fcn.004026c0
mov eax, dword [ebx]
lea ecx, [ebp - 0xa88]
push ecx
mov ecx, ebx
mov byte [ebp - 4], 5
mov eax, dword [eax + 0x1c]
call eax
lea ecx, [ebp - 0xa88]
mov dword [ebp - 0xad4], eax
mov byte [ebp - 4], 0
call fcn.00402680
mov eax, dword [ebp - 0xad4]
test eax, eax
je 0x51b488
cmp dword [eax + 0x14], 8
jb 0x51b486
mov esi, dword [eax]
jmp 0x51b488
mov esi, eax
push str.InstallConfig6
lea ecx, [ebp - 0xaa0]
call fcn.004026c0
mov eax, dword [ebx]
lea ecx, [ebp - 0xaa0]
push ecx
mov ecx, ebx
mov byte [ebp - 4], 6
mov eax, dword [eax + 0x1c]
call eax
lea ecx, [ebp - 0xaa0]
mov dword [ebp - 0xad4], eax
mov byte [ebp - 4], 0
call fcn.00402680
mov eax, dword [ebp - 0xad4]
test eax, eax
je 0x51b4d9
cmp dword [eax + 0x14], 8
jb 0x51b4d3
mov eax, dword [eax]
mov dword [ebp - 0xaf4], eax
push str.InstallConfig7
lea ecx, [ebp - 0xab8]
call fcn.004026c0
mov eax, dword [ebx]
lea ecx, [ebp - 0xab8]
push ecx
mov ecx, ebx
mov byte [ebp - 4], 7
mov eax, dword [eax + 0x1c]
call eax
lea ecx, [ebp - 0xab8]
mov dword [ebp - 0xad4], eax
mov byte [ebp - 4], 0
call fcn.00402680
mov eax, dword [ebp - 0xad4]
test eax, eax
je 0x51b52a
cmp dword [eax + 0x14], 8
jb 0x51b524
mov eax, dword [eax]
mov dword [ebp - 0xaec], eax
xor edx, edx
mov dword [ebp - 0xad4], edx
test esi, esi
je 0x51b57b
mov eax, 0x812fe0
nop dword [eax + eax]
mov cx, word [esi]
cmp cx, word [eax]
jne 0x51b566
test cx, cx
je 0x51b562
mov cx, word [esi + 2]
cmp cx, word [eax + 2]
jne 0x51b566
add esi, 4
add eax, 4
test cx, cx
jne 0x51b540
xor eax, eax
jmp 0x51b56b
sbb eax, eax
or eax, 1
test eax, eax
mov eax, 1
cmove edx, eax
mov dword [ebp - 0xad4], edx
push str.InstallConfig8
lea ecx, [ebp - 0xa10]
call fcn.004026c0
mov eax, dword [ebx]
lea ecx, [ebp - 0xa10]
push ecx
mov ecx, ebx
mov byte [ebp - 4], 8
mov eax, dword [eax + 0x1c]
call eax
lea ecx, [ebp - 0xa10]
mov byte [ebp - 4], 0
mov esi, eax
call fcn.00402680
test esi, esi
je 0x51b5ca
cmp dword [esi + 0x14], 8
jb 0x51b5c4
mov eax, dword [esi]
mov dword [ebp - 0xafc], eax
jmp 0x51b5ca
mov dword [ebp - 0xafc], esi
push str.InstallConfig9
lea ecx, [ebp - 0x980]
call fcn.004026c0
mov eax, dword [ebx]
lea ecx, [ebp - 0x980]
push ecx
mov ecx, ebx
mov byte [ebp - 4], 9
mov eax, dword [eax + 0x1c]
call eax
lea ecx, [ebp - 0x980]
mov byte [ebp - 4], 0
mov esi, eax
call fcn.00402680
test esi, esi
je 0x51b619
cmp dword [esi + 0x14], 8
jb 0x51b613
mov eax, dword [esi]
mov dword [ebp - 0xaf8], eax
jmp 0x51b619
mov dword [ebp - 0xaf8], esi
push str.InstallConfig10
lea ecx, [ebp - 0x998]
call fcn.004026c0
mov eax, dword [ebx]
lea ecx, [ebp - 0x998]
push ecx
mov ecx, ebx
mov byte [ebp - 4], 0xa
mov eax, dword [eax + 0x1c]
call eax
lea ecx, [ebp - 0x998]
mov byte [ebp - 4], 0
mov esi, eax
call fcn.00402680
test esi, esi
je 0x51b668
cmp dword [esi + 0x14], 8
jb 0x51b662
mov eax, dword [esi]
mov dword [ebp - 0xae4], eax
jmp 0x51b668
mov dword [ebp - 0xae4], esi
push str.InstallConfig11
lea ecx, [ebp - 0x9b0]
call fcn.004026c0
mov eax, dword [ebx]
lea ecx, [ebp - 0x9b0]
push ecx
mov ecx, ebx
mov byte [ebp - 4], 0xb
mov eax, dword [eax + 0x1c]
call eax
lea ecx, [ebp - 0x9b0]
mov byte [ebp - 4], 0
mov esi, eax
call fcn.00402680
test esi, esi
je 0x51b6b7
cmp dword [esi + 0x14], 8
jb 0x51b6b1
mov eax, dword [esi]
mov dword [ebp - 0xadc], eax
jmp 0x51b6b7
mov dword [ebp - 0xadc], esi
mov eax, dword [ebp - 0xaec]
xor ebx, ebx
test eax, eax
je 0x51b6d9
push eax
call fcn.00754cf9
mov ebx, eax
add esp, 4
test ebx, ebx
js 0x51b6d7
cmp ebx, 0xa
jle 0x51b6d9
xor ebx, ebx
push 0x8b5798
lea ecx, [ebp - 0x908]
call fcn.004026c0
mov eax, dword [ebp - 0xae0]
mov byte [ebp - 4], 0xc
test eax, eax
je 0x51b703
push eax
lea ecx, [ebp - 0x908]
call fcn.004027d0
lea eax, [ebp - 0x878]
push eax
call fcn.00745cc6
add esp, 4
cmp dword [ebp - 0x868], 0
mov byte [ebp - 4], 0xd
jne 0x51b734
mov ecx, dword [ebp - 0xb00]
push str.AppDataPathError
call fcn.004026c0
jmp 0x51bf4c
push 0x8b5784
lea ecx, [ebp - 0x878]
call fcn.00404180
test edi, edi
je 0x51b764
push edi
lea ecx, [ebp - 0x878]
call fcn.00404180
push 0x8b5784
lea ecx, [ebp - 0x878]
call fcn.00404180
cmp dword [ebp - 0x864], 8
lea eax, [ebp - 0x878]
cmovae eax, dword [ebp - 0x878]
push eax
call fcn.0072a247
add esp, 4
lea eax, [ebp - 0x878]
lea ecx, [ebp - 0x848]
push eax
call fcn.00404290
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x908]
mov byte [ebp - 4], 0xe
push eax
lea ecx, [ebp - 0x848]
call fcn.004045a0
lea eax, [ebp - 0x878]
push eax
lea ecx, [ebp - 0x8c0]
call fcn.00404290
push str.gmicon.ico
lea ecx, [ebp - 0x8c0]
mov byte [ebp - 4], 0xf
call fcn.00404180
call fcn.00409060
mov ecx, eax
call fcn.00406140
push eax
lea ecx, [ebp - 0xad0]
call fcn.004026c0
cmp dword [ebp - 0x834], 8
lea eax, [ebp - 0x848]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x848]
push eax
mov byte [ebp - 4], 0x10
call esi
test eax, eax
je 0x51bf09
cmp dword [ebp - 0xae4], 0
je 0x51b8d0
lea eax, [ebp - 0x878]
push eax
lea ecx, [ebp - 0x920]
call fcn.00404290
push dword [ebp - 0xae4]
lea ecx, [ebp - 0x920]
mov byte [ebp - 4], 0x11
call fcn.00404180
push str.regsvr32.exe__s
lea ecx, [ebp - 0x8d8]
call fcn.004026c0
push 0x8130cc
lea ecx, [ebp - 0x8d8]
mov byte [ebp - 4], 0x12
call fcn.00404180
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x920]
push eax
lea ecx, [ebp - 0x8d8]
call fcn.004045a0
push 0x8130cc
lea ecx, [ebp - 0x8d8]
call fcn.00404180
cmp dword [ebp - 0x8c4], 8
lea eax, [ebp - 0x8d8]
push 0x7d0
cmovae eax, dword [ebp - 0x8d8]
push 1
push eax
call fcn.0072b0a3
add esp, 0xc
lea ecx, [ebp - 0x8d8]
call fcn.00402680
lea ecx, [ebp - 0x920]
mov byte [ebp - 4], 0x10
call fcn.00402680
lea ecx, [ebp - 0x9f8]
call fcn.0051a300
cmp dword [ebp - 0x8ac], 8
lea eax, [ebp - 0x8c0]
mov byte [ebp - 4], 0x13
cmovae eax, dword [ebp - 0x8c0]
push eax
call esi
sub esp, 0x18
mov ecx, esp
test eax, eax
je 0x51b90d
lea eax, [ebp - 0x8c0]
push eax
call fcn.00404290
jmp 0x51b917
push str.GameIconNull
call fcn.004026c0
lea ecx, [ebp - 0x9f8]
call fcn.0051b170
mov ecx, dword [ebp - 0xafc]
mov esi, dword [ebp - 0xadc]
test ecx, ecx
je 0x51b954
cmp dword [ebp - 0x834], 8
lea eax, [ebp - 0x848]
push esi
cmovae eax, dword [ebp - 0x848]
push ecx
push eax
lea ecx, [ebp - 0x9f8]
call fcn.0051a6d0
mov ecx, dword [ebp - 0xaf8]
test ecx, ecx
je 0x51b980
cmp dword [ebp - 0x834], 8
lea eax, [ebp - 0x848]
push esi
cmovae eax, dword [ebp - 0x848]
push ecx
push eax
lea ecx, [ebp - 0x9f8]
call fcn.0051a460
mov esi, dword [ebp - 0xad8]
lea ecx, [ebp - 0x8a8]
push esi
call fcn.004026c0
mov byte [ebp - 4], 0x14
test esi, esi
je 0x51bef1
lea ecx, [ebp - 0xaf0]
xor esi, esi
call fcn.0073c574
push dword [ebp - 0xad8]
lea ecx, [ebp - 0xaf0]
mov byte [ebp - 4], 0x15
call fcn.0073effa
test eax, eax
je 0x51bad3
cmp eax, 1
jne 0x51babe
push dword [ebp - 0xad8]
lea eax, [ebp - 0x9c8]
push eax
lea ecx, [ebp - 0xaf0]
call fcn.0073e7d1
lea eax, [ebp - 0x9c8]
mov byte [ebp - 4], 0x16
push eax
lea eax, [ebp - 0x950]
push eax
call fcn.00738b43
lea eax, [ebp - 0x848]
mov byte [ebp - 4], 0x17
push eax
lea eax, [ebp - 0x968]
push eax
call fcn.00738b43
lea eax, [ebp - 0x950]
mov byte [ebp - 4], 0x18
push eax
call fcn.00738937
lea eax, [ebp - 0x968]
push eax
call fcn.00738937
lea eax, [ebp - 0x968]
push eax
lea eax, [ebp - 0x950]
push eax
call fcn.0051b200
add esp, 0x20
mov ecx, 0x8130d0
test al, al
mov eax, 1
cmovne esi, eax
mov eax, edi
nop word [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x51ba86
test dx, dx
je 0x51ba82
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x51ba86
add eax, 4
add ecx, 4
test dx, dx
jne 0x51ba60
xor eax, eax
jmp 0x51ba8b
sbb eax, eax
or eax, 1
test eax, eax
lea ecx, [ebp - 0x968]
mov eax, 1
cmove esi, eax
call fcn.00405b60
lea ecx, [ebp - 0x950]
call fcn.00405b60
lea ecx, [ebp - 0x9c8]
mov byte [ebp - 4], 0x15
call fcn.00402680
test esi, esi
jne 0x51bad3
push str.ShotCutExist
lea ecx, [ebp - 0x8f0]
call fcn.004027d0
jmp 0x51bdd4
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.007512b0
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
add esp, 0xc
push 0
push 0x19
push eax
push 0
call esi
test eax, eax
je 0x51bdd4
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x860]
call fcn.004026c0
push 0x8b5784
lea ecx, [ebp - 0x860]
mov byte [ebp - 4], 0x19
call fcn.00404180
mov eax, dword [ebp - 0xae8]
test eax, eax
je 0x51bb85
push eax
push dword [ebp - 0xad8]
lea eax, [ebp - 0x938]
push eax
call fcn.00738379
add esp, 0xc
lea eax, [ebp - 0x938]
mov byte [ebp - 4], 0x1a
push eax
lea ecx, [ebp - 0x860]
call fcn.00404820
lea eax, [ebp - 0x938]
push eax
lea ecx, [ebp - 0x8a8]
call fcn.004041d0
lea ecx, [ebp - 0x938]
mov byte [ebp - 4], 0x19
call fcn.00402680
jmp 0x51bb96
push dword [ebp - 0xad8]
lea ecx, [ebp - 0x860]
call fcn.00404180
push str..lnk
lea ecx, [ebp - 0x860]
call fcn.00404180
mov eax, 0x8130d0
nop dword [eax + eax]
mov cx, word [edi]
cmp cx, word [eax]
jne 0x51bbd6
test cx, cx
je 0x51bbd2
mov cx, word [edi + 2]
cmp cx, word [eax + 2]
jne 0x51bbd6
add edi, 4
add eax, 4
test cx, cx
jne 0x51bbb0
xor eax, eax
jmp 0x51bbdb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x51bd26
mov eax, dword [ebp - 0xae8]
test eax, eax
je 0x51bdc5
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x890]
call fcn.004026c0
push 0x8b5784
lea ecx, [ebp - 0x890]
mov byte [ebp - 4], 0x1b
call fcn.00404180
push dword [ebp - 0xad8]
lea ecx, [ebp - 0x890]
call fcn.00404180
push str..lnk
lea ecx, [ebp - 0x890]
call fcn.00404180
lea ecx, [ebp - 0x890]
call fcn.00402750
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call edi
test eax, eax
jne 0x51bcf6
push eax
push 0x10
lea eax, [ebp - 0x218]
push eax
push 0
call esi
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x890]
call fcn.004027d0
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x860]
call fcn.004027d0
push 0x8b5784
lea ecx, [ebp - 0x890]
call fcn.00404180
push 0x8b5784
lea ecx, [ebp - 0x860]
call fcn.00404180
mov esi, dword [ebp - 0xad8]
lea ecx, [ebp - 0x890]
push esi
call fcn.00404180
lea eax, [ebp - 0x8a8]
push eax
lea ecx, [ebp - 0x860]
call fcn.00404820
push esi
lea ecx, [ebp - 0x8a8]
call fcn.004027d0
push str..lnk
lea ecx, [ebp - 0x890]
call fcn.00404180
push str..lnk
lea ecx, [ebp - 0x860]
call fcn.00404180
lea ecx, [ebp - 0x860]
call fcn.00402750
push eax
lea ecx, [ebp - 0x890]
call fcn.00402750
push eax
call fcn.007594a5
add esp, 8
lea ecx, [ebp - 0x890]
call fcn.00402680
jmp 0x51bdc5
lea ecx, [ebp - 0x8c0]
call fcn.00402750
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call edi
push dword [ebp - 0xadc]
push 0
push 0
push 1
test eax, eax
je 0x51bd7a
lea ecx, [ebp - 0x8c0]
call fcn.00402750
push eax
push 0
lea ecx, [ebp - 0x848]
call fcn.00402750
push eax
lea ecx, [ebp - 0x860]
call fcn.00402750
push eax
call fcn.007432c6
add esp, 0x20
jmp 0x51bd9c
push 0
lea ecx, [ebp - 0x848]
call fcn.00402750
push eax
lea ecx, [ebp - 0x860]
call fcn.00402750
push eax
call fcn.007434e1
add esp, 0x1c
lea ecx, [ebp - 0x860]
call fcn.00402750
push eax
call edi
lea ecx, [ebp - 0x8f0]
test eax, eax
jne 0x51bdbb
push str.CreateShortCutFailed
jmp 0x51bdc0
push str.CreateShortCutSuccess
call fcn.004027d0
lea ecx, [ebp - 0x860]
mov byte [ebp - 4], 0x15
call fcn.00402680
cmp dword [ebp - 0xad4], 0
je 0x51bee6
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
call fcn.007451e7
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x190
call esi
push 0x3e8
call esi
mov edi, dword [ebp - 0xaf4]
test edi, edi
je 0x51be9d
push edi
call fcn.00743f31
add esp, 4
test eax, eax
je 0x51be71
push edi
call fcn.00744dec
add esp, 4
test eax, eax
je 0x51be45
push ebx
push edi
lea ecx, [ebp - 0x8a8]
call fcn.00402750
push eax
call fcn.0074521c
add esp, 0xc
jmp 0x51bedf
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.007512b0
lea eax, [ebp - 0x628]
push 0x104
push eax
call fcn.00743f82
lea eax, [ebp - 0x628]
jmp 0x51bec7
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.007512b0
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.00743f82
lea eax, [ebp - 0x420]
jmp 0x51bec7
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.007512b0
lea eax, [ebp - 0x830]
push 0x104
push eax
call fcn.00743f82
lea eax, [ebp - 0x830]
add esp, 0x14
lea ecx, [ebp - 0x8a8]
push eax
call fcn.00402750
push eax
call fcn.00744341
add esp, 8
push 0x190
call esi
lea ecx, [ebp - 0xaf0]
call fcn.00402330
lea ecx, [ebp - 0x8a8]
call fcn.00402680
lea ecx, [ebp - 0x9f8]
call fcn.00413f90
jmp 0x51bf19
push str.CompressFailed
lea ecx, [ebp - 0x8f0]
call fcn.004027d0
mov ecx, dword [ebp - 0xb00]
lea eax, [ebp - 0x8f0]
push eax
call fcn.00404840
lea ecx, [ebp - 0xad0]
call fcn.00402680
lea ecx, [ebp - 0x8c0]
call fcn.00402680
lea ecx, [ebp - 0x848]
call fcn.00402680
lea ecx, [ebp - 0x878]
call fcn.00402680
lea ecx, [ebp - 0x908]
call fcn.00402680
lea ecx, [ebp - 0x8f0]
call fcn.00402680
mov eax, dword [ebp - 0xb00]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006e615c
mov esp, ebp
pop ebp
ret 8