Function at 0x4127b0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49fea8
mov eax, dword fs:[0]
push eax
mov eax, 0x2158c
call fcn.00497d20
mov eax, dword [0x4cc99c]
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 edx, dword [0x4cb660]
mov edi, 8
mov esi, ecx
mov dword [ebp - 0x21588], esi
cmp dword [0x4cb674], edi
jae 0x412802
mov edx, 0x4cb660
lea ecx, [esi + 0x58]
mov dword [ebp - 0x2158c], ecx
cmp dword [ecx + 0x14], edi
jb 0x412812
mov ecx, dword [ecx]
mov eax, dword [0x4cb4f4]
cmp dword [0x4cb508], edi
jae 0x412824
mov eax, 0x4cb4f4
push edx
push ecx
push eax
lea eax, [ebp - 0xb8]
push str.http:___s_api_gameinfo.jsp_category5spgameid:_sreq_fromapiresulttypexmlqd_s
push eax
call fcn.0047cbe0
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0xb8]
push edx
mov byte [ebp - 4], 1
call fcn.0047ef20
add esp, 0x1c
test al, al
jne 0x412900
lea eax, [ebp - 0x48]
push eax
call fcn.0047cac0
add esp, 4
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0xb8]
cmp dword [ebp - 0xa4], edi
jae 0x41288d
lea ecx, [ebp - 0xb8]
cmp dword [eax + 0x14], edi
jb 0x412894
mov eax, dword [eax]
push ecx
push 0x4ab4fc
push eax
push 0xae
push str.CGameInstaller::DownloadXml
push str.sourcegameinstaller.cpp
push 4
call fcn.0047d210
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 0x1c
cmp dword [ebp - 0x34], edi
jb 0x4128c8
mov ecx, dword [ebp - 0x48]
push ecx
call esi
add esp, 4
cmp dword [ebp - 0x18], 0x10
jb 0x4128d7
mov edx, dword [ebp - 0x2c]
push edx
call esi
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], 0
cmp dword [ebp - 0xa4], edi
jb 0x4128f9
mov eax, dword [ebp - 0xb8]
push eax
call esi
add esp, 4
xor al, al
jmp 0x41381c
lea ecx, [ebp - 0x12c28]
call fcn.00411b10
cmp dword [esi + 0x88], edi
lea eax, [esi + 0x74]
jb 0x412918
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCR100.dll__wtoi]
mov esi, eax
mov eax, dword [ebp - 0x2c]
mov edi, 0x10
add esp, 4
mov dword [ebp - 0x21590], esi
cmp dword [ebp - 0x18], edi
jae 0x41293a
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x12c28]
push ecx
push esi
push eax
call fcn.00471160
add esp, 0xc
mov ecx, 0x4ab248
lea eax, [ebp - 0x12c28]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41297c
cmp dx, bx
je 0x412978
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41297c
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x412956
xor eax, eax
jmp 0x412981
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x4129bf
mov ecx, 0x4ab248
lea eax, [ebp - 0x12b28]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4129b6
cmp dx, bx
je 0x4129b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4129b6
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x412990
xor eax, eax
jmp 0x4129bb
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x412a0d
lea edx, [ebp - 0x12c28]
push edx
push esi
mov esi, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x4129d2
lea esi, [ebp - 0x2c]
sub esp, 0x1c
mov ecx, esp
mov eax, esi
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
mov dword [ebp - 0x21594], esp
mov byte [ecx], 0
lea edi, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4129f0
sub eax, edi
push eax
push esi
call fcn.00403870
call fcn.0046ffd0
add esp, 0x24
mov edi, 0x10
lea eax, [ebp - 0x12c28]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x412a16
sub eax, edx
sar eax, 1
jne 0x412a98
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x412a32
lea eax, [ebp - 0x2c]
push eax
push str.xml:_s
push 0x4b059c
push 0xbf
push str.CGameInstaller::DownloadXml
push str.sourcegameinstaller.cpp
push 4
call fcn.0047d210
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 0x1c
cmp dword [ebp - 0x18], edi
jb 0x412a6a
mov eax, dword [ebp - 0x2c]
push eax
call esi
add esp, 4
cmp dword [ebp - 0xa4], 8
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], 0
jb 0x4128f9
mov ecx, dword [ebp - 0xb8]
push ecx
call esi
add esp, 4
xor al, al
jmp 0x41381c
lea ecx, [ebp - 0x280]
call fcn.00411a00
mov eax, dword [ebp - 0x21590]
mov byte [ebp - 4], 3
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 4
je 0x412ad4
cmp eax, 5
je 0x412ad4
push 3
push 0x4b0644
lea ecx, [ebp - 0x1f4]
call fcn.00403870
jmp 0x412d07
cmp dword [0x4cb508], 8
mov eax, dword [0x4cb4f4]
jae 0x412ae7
mov eax, 0x4cb4f4
push eax
lea edx, [ebp - 0x80]
push str.http:___s_api_play.jsp_spgameid:
push edx
call fcn.0047cbe0
add esp, 0xc
mov eax, dword [ebp - 0x2158c]
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 4
call fcn.00402d10
push 0xa
push str._gamename:
lea ecx, [ebp - 0x80]
call fcn.004026a0
lea ecx, [ebp - 0x12b28]
push ecx
call ebx
inc eax
cmp eax, 0x3fffffff
jle 0x412b34
xor eax, eax
jmp 0x412b50
lea esi, [eax + eax]
mov eax, esi
call fcn.00497dd0
mov eax, esp
push 3
push esi
lea edx, [ebp - 0x12b28]
push edx
push eax
call fcn.00403590
mov edi, 0xf
mov ecx, eax
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x8c], 0
mov byte [ebp - 0x9c], 0
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x412b71
sub ecx, esi
push ecx
push eax
lea ecx, [ebp - 0x9c]
call fcn.00403870
push 1
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x48]
push ecx
mov byte [ebp - 4], 5
call fcn.00465210
add esp, 0xc
mov esi, 0x10
mov byte [ebp - 4], 7
cmp dword [ebp - 0x88], esi
jb 0x412bc1
mov edx, dword [ebp - 0x9c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x8c], 0
mov byte [ebp - 0x9c], 0
cmp dword [ebp - 0x34], esi
jb 0x412be8
mov edi, dword [ebp - 0x48]
test edi, edi
jne 0x412beb
xor eax, eax
jmp 0x412c15
lea edi, [ebp - 0x48]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [eax + 1]
cmp esi, 0x3fffffff
jle 0x412c01
xor eax, eax
jmp 0x412c15
lea eax, [esi + esi]
call fcn.00497dd0
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.00403550
mov ecx, eax
lea esi, [ecx + 2]
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x412c20
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x80]
call fcn.004026a0
push 0xb
push str._category
lea ecx, [ebp - 0x80]
call fcn.004026a0
lea eax, [ebp - 0x12ba8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x412c51
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x12ba8]
push eax
lea ecx, [ebp - 0x80]
call fcn.004026a0
cmp dword [ebp - 0x21590], 5
push 7
lea ecx, [ebp - 0x80]
jne 0x412c85
push str.qd101
jmp 0x412c8a
push str.qd102
call fcn.004026a0
mov eax, dword [ebp - 0x80]
mov esi, 8
cmp dword [ebp - 0x6c], esi
jae 0x412c9f
lea eax, [ebp - 0x80]
push eax
push 0x4ab4fc
lea ecx, [ebp - 0x11b28]
push 0x1000
push ecx
call dword [sym.imp.MSVCR100.dll_swprintf_s]
add esp, 0x10
push 3
push 0x4b0644
lea ecx, [ebp - 0x1f4]
call fcn.00403870
cmp dword [ebp - 0x34], 0x10
jb 0x412cdf
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov byte [ebp - 4], 3
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
cmp dword [ebp - 0x6c], esi
jb 0x412d07
mov eax, dword [ebp - 0x80]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
lea ecx, [ebp - 0x12c28]
push ecx
call ebx
inc eax
cmp eax, 0x3fffffff
jle 0x412d1c
xor eax, eax
jmp 0x412d38
lea esi, [eax + eax]
mov eax, esi
call fcn.00497dd0
mov eax, esp
push 3
push esi
lea edx, [ebp - 0x12c28]
push edx
push eax
call fcn.00403590
mov ecx, eax
lea esi, [ecx + 1]
lea ecx, [ecx]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x412d40
sub ecx, esi
push ecx
push eax
lea ecx, [ebp - 0x280]
call fcn.00403870
lea eax, [ebp - 0x12b28]
push eax
call ebx
inc eax
cmp eax, 0x3fffffff
jle 0x412d6b
xor eax, eax
jmp 0x412d87
lea esi, [eax + eax]
mov eax, esi
call fcn.00497dd0
mov eax, esp
push 3
push esi
lea ecx, [ebp - 0x12b28]
push ecx
push eax
call fcn.00403590
mov ecx, eax
lea esi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x412d90
sub ecx, esi
push ecx
push eax
lea ecx, [ebp - 0x264]
call fcn.00403870
lea edx, [ebp - 0x12ba8]
push edx
call ebx
inc eax
cmp eax, 0x3fffffff
jle 0x412dbb
xor eax, eax
jmp 0x412dd7
lea esi, [eax + eax]
mov eax, esi
call fcn.00497dd0
mov eax, esp
push 3
push esi
lea ecx, [ebp - 0x12ba8]
push ecx
push eax
call fcn.00403590
mov ecx, eax
lea esi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x412de0
sub ecx, esi
push ecx
push eax
lea ecx, [ebp - 0x248]
call fcn.00403870
lea edx, [ebp - 0x12328]
push edx
call ebx
inc eax
cmp eax, 0x3fffffff
jle 0x412e0b
xor eax, eax
jmp 0x412e27
lea esi, [eax + eax]
mov eax, esi
call fcn.00497dd0
mov eax, esp
push 3
push esi
lea ecx, [ebp - 0x12328]
push ecx
push eax
call fcn.00403590
mov ecx, eax
lea esi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x412e30
sub ecx, esi
push ecx
push eax
lea ecx, [ebp - 0x22c]
call fcn.00403870
lea edx, [ebp - 0x11b28]
push edx
call ebx
inc eax
cmp eax, 0x3fffffff
jle 0x412e5b
xor eax, eax
jmp 0x412e77
lea esi, [eax + eax]
mov eax, esi
call fcn.00497dd0
mov eax, esp
push 3
push esi
lea ecx, [ebp - 0x11b28]
push ecx
push eax
call fcn.00403590
mov ecx, eax
lea esi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x412e80
sub ecx, esi
push ecx
push eax
lea ecx, [ebp - 0x210]
call fcn.00403870
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x2c]
cmp eax, 1
jb 0x412ef9
dec eax
cmp eax, 0xffffffff
jbe 0x412ead
or eax, 0xffffffff
mov ecx, ebx
cmp edi, 0x10
jae 0x412eb7
lea ecx, [ebp - 0x2c]
lea esi, [ecx + eax]
lea ebx, [ebx]
cmp byte [esi], 0x3e
jne 0x412ed5
movzx eax, byte [esi]
sub eax, 0x3e
je 0x412ee4
sar eax, 0x1f
or eax, 1
je 0x412ee4
lea ecx, [ebp - 0x2c]
call fcn.00403860
cmp esi, eax
je 0x412ef9
dec esi
jmp 0x412ec0
mov eax, ebx
cmp edi, 0x10
jae 0x412eee
lea eax, [ebp - 0x2c]
sub esi, eax
cmp esi, 0xffffffff
jne 0x412f7b
mov eax, ebx
cmp edi, 0x10
jae 0x412f03
lea eax, [ebp - 0x2c]
push eax
push 0x4ab4fc
push 0x4b0648
push 0xe8
push str.CGameInstaller::DownloadXml
push str.sourcegameinstaller.cpp
push 4
call fcn.0047d210
add esp, 0x1c
lea ecx, [ebp - 0x280]
call fcn.00413840
cmp dword [ebp - 0x18], 0x10
jb 0x412f45
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp dword [ebp - 0xa4], 8
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
jb 0x4128f9
mov eax, dword [ebp - 0xb8]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor al, al
jmp 0x41381c
inc esi
push esi
push 0
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004140e0
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 8
call fcn.00414120
mov esi, 0x10
mov byte [ebp - 4], 3
cmp dword [ebp - 0x34], esi
jb 0x412fb3
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x412fbe
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xd4]
push eax
call fcn.00474a90
add esp, 8
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0xc4]
cmp eax, 0x5000
jbe 0x413048
mov ecx, dword [ebp - 0xd4]
cmp dword [ebp - 0xc0], esi
jae 0x412ff3
lea ecx, [ebp - 0xd4]
push ecx
push eax
push str._d:_s
push str.JSON
push 0xf0
push str.CGameInstaller::DownloadXml
push str.sourcegameinstaller.cpp
push 4
call fcn.0047d210
add esp, 0x20
lea ecx, [ebp - 0xd4]
call fcn.00403800
lea ecx, [ebp - 0x280]
call fcn.00413840
lea ecx, [ebp - 0x2c]
call fcn.00403800
lea ecx, [ebp - 0xb8]
call fcn.004024d0
xor al, al
jmp 0x41381c
cmp dword [ebp - 0xc0], esi
jb 0x41305e
mov edi, dword [ebp - 0xd4]
test edi, edi
jne 0x413064
xor eax, eax
jmp 0x41308e
lea edi, [ebp - 0xd4]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [eax + 1]
cmp esi, 0x3fffffff
jle 0x41307a
xor eax, eax
jmp 0x41308e
lea eax, [esi + esi]
call fcn.00497dd0
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.00403550
mov edi, dword [sym.imp.MSVCR100.dll_swprintf_s]
push eax
push 0x4ab4fc
lea ecx, [ebp - 0xd2a8]
push 0x5000
push ecx
call edi
add esp, 0x10
lea edx, [ebp - 0x32a8]
push edx
lea ecx, [ebp - 0x64]
call fcn.00402480
sub esp, 0x1c
lea eax, [ebp - 0x64]
mov ecx, esp
mov dword [ebp - 0x21594], esp
push eax
mov byte [ebp - 4], 0xa
call fcn.004083d0
call fcn.00468cf0
add esp, 0x1c
cmp eax, 1
jne 0x4131e5
push eax
push 0xffffffffffffffff
push 0x4acbd8
lea ecx, [ebp - 0x64]
call fcn.00408640
cmp eax, 0xffffffff
je 0x4131e5
mov ecx, dword [ebp - 0x54]
push ecx
inc eax
push eax
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebp - 0x64]
call fcn.00408400
push eax
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0xb
call fcn.004085c0
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xa
call fcn.004024d0
cmp dword [ebp - 0x54], 0
jbe 0x4131e5
mov eax, dword [ebp - 0x64]
mov ebx, 8
cmp dword [ebp - 0x50], ebx
jae 0x413141
lea eax, [ebp - 0x64]
mov esi, dword [sym.imp.MSVCR100.dll__wcsicmp]
push 0x4b067c
push eax
call esi
add esp, 8
test eax, eax
je 0x4131e5
mov eax, dword [ebp - 0x64]
cmp dword [ebp - 0x50], ebx
jae 0x413165
lea eax, [ebp - 0x64]
push 0x4b0684
push eax
call esi
add esp, 8
test eax, eax
je 0x4131e5
mov eax, dword [ebp - 0x64]
cmp dword [ebp - 0x50], ebx
jae 0x41317f
lea eax, [ebp - 0x64]
push 0x4b068c
push eax
call esi
add esp, 8
test eax, eax
je 0x4131e5
mov eax, dword [ebp - 0x64]
cmp dword [ebp - 0x50], ebx
jae 0x413199
lea eax, [ebp - 0x64]
push 0x4b0694
push eax
call esi
add esp, 8
test eax, eax
je 0x4131e5
lea eax, [ebp - 0x32a8]
push eax
lea ecx, [ebp - 0x48]
push ecx
call fcn.004738d0
mov eax, dword [ebp - 0x48]
add esp, 8
cmp dword [ebp - 0x34], ebx
jae 0x4131c6
lea eax, [ebp - 0x48]
push eax
push 0x4ab4fc
lea edx, [ebp - 0x32a8]
push 0x1000
push edx
call edi
add esp, 0x10
lea ecx, [ebp - 0x48]
call fcn.004024d0
mov eax, 0x129a8
lea esi, [ebp - 0x12c28]
call fcn.00497d20
lea eax, [ebp - 0x21580]
mov edi, esp
mov ecx, 0x4a6a
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00462730
push 2
lea ecx, [ebp - 0x21480]
push str.installstate
push ecx
mov dword [ebp - 0x13cdc], 1
mov dword [ebp - 0x13cd8], 2
call fcn.00460cd0
mov ebx, dword [ebp - 0x21588]
add esp, 0x129b8
push 0x4adfcc
add ebx, 0xac
lea edx, [ebp - 0x48]
push ebx
push edx
call fcn.00408d40
mov esi, dword [ebp - 0x21588]
lea ecx, [esi + 0x20]
push ecx
push eax
lea edx, [ebp - 0x144]
push edx
mov byte [ebp - 4], 0xc
call fcn.00408f80
add esp, 0x18
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xe
call fcn.004024d0
push 0x4adfcc
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0x9c]
push ecx
call fcn.00408d40
add esi, 0xc8
push esi
push eax
lea edx, [ebp - 0x198]
push edx
mov byte [ebp - 4], 0xf
call fcn.00408f80
add esp, 0x18
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0x11
call fcn.004024d0
cmp dword [ebp - 0x184], 8
mov eax, dword [ebp - 0x198]
jae 0x4132d3
lea eax, [ebp - 0x198]
mov esi, dword [sym.imp.MSVCR100.dll_swprintf_s]
push eax
push 0x4ab4fc
lea eax, [ebp - 0x1e380]
push 0x400
push eax
call esi
mov eax, dword [ebp - 0x144]
add esp, 0x10
cmp dword [ebp - 0x130], 8
jae 0x413305
lea eax, [ebp - 0x144]
push eax
push 0x4ab4fc
lea ecx, [ebp - 0x1cb80]
push 0x400
push ecx
call esi
mov edi, dword [ebp - 0x21588]
push 0x4adfcc
lea esi, [edi + 4]
lea edx, [ebp - 0x48]
push esi
push edx
call fcn.00408d40
add edi, 0x100
push edi
push eax
lea eax, [ebp - 0x17c]
push eax
mov byte [ebp - 4], 0x12
call fcn.00408f80
add esp, 0x28
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x14
call fcn.004024d0
lea ecx, [ebp - 0x80]
push ecx
call fcn.0047bee0
push str.gamedata_
push eax
lea edx, [ebp - 0x9c]
push edx
mov byte [ebp - 4], 0x15
call fcn.00408f20
mov ecx, dword [ebp - 0x2158c]
push ecx
push eax
lea edx, [ebp - 0x128]
push edx
mov byte [ebp - 4], 0x16
call fcn.00408f80
add esp, 0x1c
lea ecx, [ebp - 0x9c]
call fcn.004024d0
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x19
call fcn.004024d0
sub esp, 0x1c
lea eax, [ebp - 0x128]
mov ecx, esp
mov dword [ebp - 0x21594], esp
push eax
call fcn.004083d0
call fcn.0047baa0
add esp, 0x1c
push 9
push str.game.ico
lea ecx, [ebp - 0x128]
call fcn.004026a0
mov ecx, dword [ebp - 0x128]
mov eax, 8
cmp dword [ebp - 0x114], eax
jae 0x4133f3
lea ecx, [ebp - 0x128]
cmp dword [ebp - 0x168], eax
mov eax, dword [ebp - 0x17c]
jae 0x413407
lea eax, [ebp - 0x17c]
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
push ecx
push eax
call edi
lea ecx, [ebp - 0x21580]
call fcn.00413950
push 0x4adfcc
lea ecx, [ebp - 0x48]
push esi
push ecx
call fcn.00408d40
mov edx, dword [ebp - 0x21588]
add edx, 0xe4
push edx
push eax
lea eax, [ebp - 0x160]
push eax
mov byte [ebp - 4], 0x1a
call fcn.00408f80
add esp, 0x18
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x1c
call fcn.004024d0
lea ecx, [ebp - 0x1b4]
push ecx
call fcn.0047bee0
push str.image_
push eax
lea edx, [ebp - 0x80]
push edx
mov byte [ebp - 4], 0x1d
call fcn.00408f20
mov ecx, dword [ebp - 0x2158c]
push ecx
push eax
lea edx, [ebp - 0x9c]
push edx
mov byte [ebp - 4], 0x1e
call fcn.00408f80
push 0x4b06e4
push eax
lea eax, [ebp - 0x10c]
push eax
mov byte [ebp - 4], 0x1f
call fcn.00408f20
add esp, 0x28
lea ecx, [ebp - 0x9c]
call fcn.004024d0
lea ecx, [ebp - 0x80]
call fcn.004024d0
lea ecx, [ebp - 0x1b4]
mov byte [ebp - 4], 0x23
call fcn.004024d0
cmp dword [ebp - 0xf8], 8
mov ecx, dword [ebp - 0x10c]
jae 0x4134e1
lea ecx, [ebp - 0x10c]
cmp dword [ebp - 0x14c], 8
mov eax, dword [ebp - 0x160]
jae 0x4134f6
lea eax, [ebp - 0x160]
push 0
push ecx
push eax
call edi
cmp dword [ebp - 0xf8], 8
mov eax, dword [ebp - 0x10c]
jae 0x413511
lea eax, [ebp - 0x10c]
push eax
push 0x4ab4fc
lea ecx, [ebp - 0x20b80]
push 0x400
push ecx
call dword [sym.imp.MSVCR100.dll_swprintf_s]
mov edi, 8
add esp, 0x10
cmp dword [ebx + 0x14], edi
jb 0x41353a
mov eax, dword [ebx]
jmp 0x41353c
mov eax, ebx
push eax
lea edx, [ebp - 0x21480]
push edx
call fcn.00462eb0
push 0
lea eax, [ebp - 0x21480]
push str.cancelflag
push eax
call fcn.00460cd0
push 0
lea ecx, [ebp - 0x21480]
push str.checkinstallflag
push ecx
call fcn.00460cd0
lea edx, [ebp - 0x1bb80]
push edx
lea eax, [ebp - 0x21480]
push str.deskname
push eax
call fcn.00460bc0
lea ecx, [ebp - 0x13cd4]
push ecx
lea edx, [ebp - 0x21480]
push str.downloadcursize1
push edx
call fcn.00460bc0
add esp, 0x38
cmp dword [esi + 0x14], edi
jb 0x4135ab
mov eax, dword [esi]
jmp 0x4135ad
mov eax, esi
push eax
lea eax, [ebp - 0x21480]
push str.downloadfiledir
push eax
call fcn.00460bc0
add esp, 0xc
cmp dword [esi + 0x14], edi
jb 0x4135c9
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x21480]
push str.downloadfilepath
push ecx
call fcn.00460bc0
lea edx, [ebp - 0x13cd4]
push edx
call dword [sym.imp.MSVCR100.dll__wtoi64]
push eax
lea eax, [ebp - 0x21480]
push str.downloadsize
push eax
mov dword [ebp - 0x21594], edx
call fcn.00460cd0
push str.1.000000
lea ecx, [ebp - 0x21480]
push str.process1
push ecx
call fcn.00460bc0
push 0x4b07fc
lea edx, [ebp - 0x21480]
push 0x4b0800
push edx
call fcn.00460bc0
lea eax, [ebp - 0x21380]
push eax
lea ecx, [ebp - 0x21480]
push str.Name
push ecx
call fcn.00460bc0
add esp, 0x40
push 2
lea edx, [ebp - 0x21480]
push str.installstate
push edx
call fcn.00460cd0
add esp, 0xc
lea ecx, [ebp - 0x21584]
call fcn.00486cb0
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 0x24
call fcn.0047bee0
push str.datahfgameworld.dat
push eax
lea ecx, [ebp - 0xf0]
push ecx
mov byte [ebp - 4], 0x25
call fcn.00408f20
add esp, 0x10
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x27
call fcn.004024d0
mov eax, dword [ebp - 0xf0]
cmp dword [ebp - 0xdc], edi
jae 0x4136ae
lea eax, [ebp - 0xf0]
push eax
lea ecx, [ebp - 0x21584]
call fcn.0047d3b0
test al, al
jne 0x413763
mov eax, dword [ebp - 0xf0]
cmp dword [ebp - 0xdc], edi
jae 0x4136d6
lea eax, [ebp - 0xf0]
push eax
push str.file:_s
push 0x4b0858
push 0x15f
push str.CGameInstaller::DownloadXml
push str.sourcegameinstaller.cpp
push 4
call fcn.0047d210
add esp, 0x1c
lea ecx, [ebp - 0xf0]
call fcn.004024d0
lea ecx, [ebp - 0x21584]
mov byte [ebp - 4], 0x23
call fcn.0047d5e0
lea ecx, [ebp - 0x10c]
call fcn.004024d0
lea ecx, [ebp - 0x160]
call fcn.004024d0
lea ecx, [ebp - 0x128]
call fcn.004024d0
lea ecx, [ebp - 0x17c]
call fcn.004024d0
lea ecx, [ebp - 0x198]
call fcn.004024d0
lea ecx, [ebp - 0x144]
call fcn.004024d0
lea ecx, [ebp - 0x64]
call fcn.004024d0
jmp 0x413018
lea ecx, [ebp - 0x21584]
call fcn.0047d460
lea edx, [ebp - 0x21580]
push edx
lea ecx, [ebp - 0x21584]
call fcn.0047ed40
lea ecx, [ebp - 0x21584]
mov bl, al
call fcn.0047d440
lea ecx, [ebp - 0xf0]
call fcn.004024d0
lea ecx, [ebp - 0x21584]
mov byte [ebp - 4], 0x23
call fcn.0047d5e0
lea ecx, [ebp - 0x10c]
call fcn.004024d0
lea ecx, [ebp - 0x160]
call fcn.004024d0
lea ecx, [ebp - 0x128]
call fcn.004024d0
lea ecx, [ebp - 0x17c]
call fcn.004024d0
lea ecx, [ebp - 0x198]
call fcn.004024d0
lea ecx, [ebp - 0x144]
call fcn.004024d0
lea ecx, [ebp - 0x64]
call fcn.004024d0
lea ecx, [ebp - 0xd4]
call fcn.00403800
lea ecx, [ebp - 0x280]
call fcn.00413840
lea ecx, [ebp - 0x2c]
call fcn.00403800
lea ecx, [ebp - 0xb8]
call fcn.004024d0
mov al, bl
lea esp, [ebp - 0x215a8]
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.00497792
mov esp, ebp
pop ebp
ret