Function at 0x474ac0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49a6d1
mov eax, dword fs:[0]
push eax
mov eax, 0x21484
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 eax, dword [ebp + 0x44]
mov dword [ebp - 0x12b34], eax
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 1
jae 0x474b0e
lea eax, [ebp + 8]
push eax
push str.id:_s
push 0x4a72cc
push 0x1c2f
push str.ComLib::GetPlayInfoByGameId
push str.sourcecomlib.cpp
push 2
call fcn.0047d210
push 0x8c
call fcn.004978c0
mov esi, eax
xor edi, edi
add esp, 0x20
cmp esi, edi
je 0x474b73
push 0x80
push edi
push esi
call sub.MSVCR100.dll_memset
add esp, 0xc
mov dword [esi + 0x84], edi
mov dword [esi + 0x88], edi
mov dword [esi + 0x80], 4
mov ebx, esi
mov dword [ebp - 0x12b2c], esi
jmp 0x474b7b
xor ebx, ebx
mov dword [ebp - 0x12b2c], ebx
mov eax, dword [ebp + 8]
mov esi, 8
cmp dword [ebp + 0x1c], esi
jae 0x474b8b
lea eax, [ebp + 8]
push eax
push 0x4ab4fc
push 0x40
push ebx
call dword [sym.imp.MSVCR100.dll_swprintf_s]
mov eax, dword [ebp + 0x24]
add esp, 0x10
cmp dword [ebp + 0x38], esi
jae 0x474ba8
lea eax, [ebp + 0x24]
push eax
call dword [sym.imp.MSVCR100.dll__wtoi]
add esp, 4
push edi
push edi
push edi
push edi
mov dword [ebx + 0x80], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
lea ecx, [ebp - 0x12b38]
push ecx
push edi
push ebx
push 0x468ac0
push edi
push edi
mov dword [ebx + 0x88], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
jne 0x474c1d
cmp dword [ebp + 0x1c], esi
jb 0x474bf3
mov edx, dword [ebp + 8]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], edi
mov word [ebp + 8], ax
cmp dword [ebp + 0x38], esi
jb 0x475527
mov ecx, dword [ebp + 0x24]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x475527
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov edx, dword [ebx + 0x88]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebx + 0x88]
push eax
call esi
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x474c4a
lea eax, [ebp + 8]
push eax
push str.id:_s
push 0x4a7280
push 0x1c3f
push str.ComLib::GetPlayInfoByGameId
push str.sourcecomlib.cpp
push 2
call fcn.0047d210
mov ecx, dword [ebx + 0x84]
add esp, 0x1c
cmp ecx, edi
jne 0x474ce7
mov eax, dword [ebp + 8]
mov esi, 8
cmp dword [ebp + 0x1c], esi
jae 0x474c88
lea eax, [ebp + 8]
push eax
push str.id:_s
push 0x4a726c
push 0x1c43
push str.ComLib::GetPlayInfoByGameId
push str.sourcecomlib.cpp
push 4
call fcn.0047d210
add esp, 0x1c
cmp dword [ebp + 0x1c], esi
jb 0x474cbd
mov ecx, dword [ebp + 8]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor edx, edx
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], edi
mov word [ebp + 8], dx
cmp dword [ebp + 0x38], esi
jb 0x475527
mov eax, dword [ebp + 0x24]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x475527
mov eax, ecx
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x2c], 0
lea esi, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x474d00
sub eax, esi
push eax
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00403870
mov eax, dword [ebx + 0x84]
mov byte [ebp - 4], 2
cmp eax, edi
je 0x474d2a
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
lea ecx, [ebp - 0x12b24]
mov dword [ebx + 0x84], edi
call fcn.00411b10
mov eax, dword [ebp - 0x2c]
mov esi, 0x10
cmp dword [ebp - 0x18], esi
jae 0x474d4b
lea eax, [ebp - 0x2c]
mov edx, dword [ebx + 0x80]
lea ecx, [ebp - 0x12b24]
push ecx
push edx
push eax
call fcn.00471160
add esp, 0xc
mov ecx, 0x4ab248
lea eax, [ebp - 0x12b24]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x474d96
cmp dx, di
je 0x474d92
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x474d96
add eax, 4
add ecx, 4
cmp dx, di
jne 0x474d70
xor eax, eax
jmp 0x474d9b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x474ddf
mov ecx, 0x4ab248
lea eax, [ebp - 0x12a24]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x474dd6
cmp dx, di
je 0x474dd2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x474dd6
add eax, 4
add ecx, 4
cmp dx, di
jne 0x474db0
xor eax, eax
jmp 0x474ddb
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
jne 0x474e19
mov ecx, dword [ebx + 0x80]
lea eax, [ebp - 0x12b24]
push eax
push ecx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x12b30], esp
push 0xffffffffffffffff
push edi
lea edx, [ebp - 0x2c]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], edi
push edx
mov byte [ecx], 0
call fcn.00403970
call fcn.0046ffd0
add esp, 0x24
lea eax, [ebp - 0x12b24]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x474e22
sub eax, edx
sar eax, 1
cmp eax, edi
ja 0x474e5e
cmp dword [ebp - 0x18], esi
jb 0x474e46
mov eax, dword [ebp - 0x2c]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x2c], 0
mov esi, 8
jmp 0x474cac
lea ecx, [ebp - 0x17c]
call fcn.00411a00
mov eax, dword [ebx + 0x80]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov byte [ebp - 4], 3
cmp eax, 4
je 0x474e9f
cmp eax, 5
je 0x474e9f
push 3
push 0x4b0644
lea ecx, [ebp - 0xf0]
call fcn.00403870
mov edi, 0x10
jmp 0x4750bb
cmp dword [0x4cb508], 8
mov eax, dword [0x4cb4f4]
jae 0x474eb2
mov eax, 0x4cb4f4
push eax
lea ecx, [ebp - 0x80]
push str.http:___s_api_play.jsp_spgameid:
push ecx
call fcn.0047cbe0
add esp, 0xc
push 0xffffffffffffffff
push edi
lea edx, [ebp + 8]
push edx
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 eax, [ebp - 0x12a24]
push eax
call ebx
inc eax
cmp eax, 0x3fffffff
jle 0x474efb
xor eax, eax
jmp 0x474f1c
lea esi, [eax + eax]
mov eax, esi
call fcn.00497dd0
mov eax, esp
push 3
push esi
lea ecx, [ebp - 0x12a24]
push ecx
push eax
call fcn.00403590
mov esi, 0x10
push eax
lea ecx, [ebp - 0x64]
call fcn.004037c0
push 1
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x9c]
push eax
mov byte [ebp - 4], 5
call fcn.00465210
add esp, 0xc
mov byte [ebp - 4], 7
cmp dword [ebp - 0x50], esi
jb 0x474f53
mov ecx, dword [ebp - 0x64]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], edi
mov byte [ebp - 0x64], 0
cmp dword [ebp - 0x88], esi
jb 0x474f77
mov edi, dword [ebp - 0x9c]
test edi, edi
jne 0x474f7d
xor eax, eax
jmp 0x474fa7
lea edi, [ebp - 0x9c]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [eax + 1]
cmp esi, 0x3fffffff
jle 0x474f93
xor eax, eax
jmp 0x474fa7
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 esp, [esp]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x474fb0
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 - 0x12aa4]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x474fe1
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x12aa4]
push edx
lea ecx, [ebp - 0x80]
call fcn.004026a0
mov eax, dword [ebp - 0x12b2c]
cmp dword [eax + 0x80], 5
push 7
lea ecx, [ebp - 0x80]
jne 0x47501b
push str.qd101
jmp 0x475020
push str.qd102
call fcn.004026a0
mov eax, dword [ebp - 0x80]
mov esi, 8
cmp dword [ebp - 0x6c], esi
jae 0x475035
lea eax, [ebp - 0x80]
push eax
push 0x4ab4fc
lea ecx, [ebp - 0x11a24]
push 0x1000
push ecx
call dword [sym.imp.MSVCR100.dll_swprintf_s]
add esp, 0x10
cmp byte [ebp + 0x48], 0
push 3
lea ecx, [ebp - 0xf0]
je 0x475065
push 0x4b0644
jmp 0x47506a
push 0x4a7268
call fcn.00403870
mov edi, 0x10
cmp dword [ebp - 0x88], edi
jb 0x47508b
mov edx, dword [ebp - 0x9c]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x88], 0xf
mov dword [ebp - 0x8c], 0
mov byte [ebp - 0x9c], 0
mov byte [ebp - 4], 3
cmp dword [ebp - 0x6c], esi
jb 0x4750bb
mov eax, dword [ebp - 0x80]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [ebp - 0x12b24]
push ecx
call ebx
inc eax
cmp eax, 0x3fffffff
jle 0x4750d0
xor eax, eax
jmp 0x4750ec
lea esi, [eax + eax]
mov eax, esi
call fcn.00497dd0
mov eax, esp
push 3
push esi
lea edx, [ebp - 0x12b24]
push edx
push eax
call fcn.00403590
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4750f1
sub ecx, esi
push ecx
push eax
lea ecx, [ebp - 0x17c]
call fcn.00403870
lea eax, [ebp - 0x12a24]
push eax
call ebx
inc eax
cmp eax, 0x3fffffff
jle 0x47511c
xor eax, eax
jmp 0x475138
lea esi, [eax + eax]
mov eax, esi
call fcn.00497dd0
mov eax, esp
push 3
push esi
lea ecx, [ebp - 0x12a24]
push ecx
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 0x475140
sub ecx, esi
push ecx
push eax
lea ecx, [ebp - 0x160]
call fcn.00403870
lea edx, [ebp - 0x12aa4]
push edx
call ebx
inc eax
cmp eax, 0x3fffffff
jle 0x47516b
xor eax, eax
jmp 0x475187
lea esi, [eax + eax]
mov eax, esi
call fcn.00497dd0
mov eax, esp
push 3
push esi
lea ecx, [ebp - 0x12aa4]
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 0x475190
sub ecx, esi
push ecx
push eax
lea ecx, [ebp - 0x144]
call fcn.00403870
lea edx, [ebp - 0x12224]
push edx
call ebx
inc eax
cmp eax, 0x3fffffff
jle 0x4751bb
xor eax, eax
jmp 0x4751d7
lea esi, [eax + eax]
mov eax, esi
call fcn.00497dd0
mov eax, esp
push 3
push esi
lea ecx, [ebp - 0x12224]
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 0x4751e0
sub ecx, esi
push ecx
push eax
lea ecx, [ebp - 0x128]
call fcn.00403870
lea edx, [ebp - 0x11a24]
push edx
call ebx
inc eax
cmp eax, 0x3fffffff
jle 0x47520b
xor eax, eax
jmp 0x475227
lea esi, [eax + eax]
mov eax, esi
call fcn.00497dd0
mov eax, esp
push 3
push esi
lea ecx, [ebp - 0x11a24]
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 0x475230
sub ecx, esi
push ecx
push eax
lea ecx, [ebp - 0x10c]
call fcn.00403870
push 1
push 0xffffffffffffffff
lea edx, [ebp - 0x12b28]
push edx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x12b28], 0x3e
call fcn.004141a0
cmp eax, 0xffffffff
je 0x475504
inc eax
push eax
push 0
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004140e0
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 8
call fcn.00414120
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 3
call fcn.00403800
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x47529d
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xb8]
push ecx
call fcn.00474a90
add esp, 8
cmp dword [ebp - 0xa8], 0x5000
mov byte [ebp - 4], 9
ja 0x4754f9
cmp dword [ebp - 0xa4], edi
jb 0x4752d7
mov edi, dword [ebp - 0xb8]
test edi, edi
jne 0x4752dd
xor eax, eax
jmp 0x475307
lea edi, [ebp - 0xb8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [eax + 1]
cmp esi, 0x3fffffff
jle 0x4752f3
xor eax, eax
jmp 0x475307
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 edx, [ebp - 0xd1a4]
push 0x5000
push edx
call edi
add esp, 0x10
lea eax, [ebp - 0x31a4]
push eax
lea ecx, [ebp - 0x48]
call fcn.00402480
sub esp, 0x1c
lea edx, [ebp - 0x48]
mov ecx, esp
mov dword [ebp - 0x12b30], esp
push edx
mov byte [ebp - 4], 0xa
call fcn.004083d0
call fcn.00468cf0
add esp, 0x1c
cmp eax, 1
jne 0x47545e
push eax
push 0xffffffffffffffff
push 0x4acbd8
lea ecx, [ebp - 0x48]
call fcn.00408640
cmp eax, 0xffffffff
je 0x47545e
mov ecx, dword [ebp - 0x38]
push ecx
inc eax
push eax
lea edx, [ebp - 0x64]
push edx
lea ecx, [ebp - 0x48]
call fcn.00408400
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xb
call fcn.004085c0
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0xa
call fcn.004024d0
cmp dword [ebp - 0x38], 0
jbe 0x47545e
mov eax, dword [ebp - 0x48]
mov ebx, 8
cmp dword [ebp - 0x34], ebx
jae 0x4753ba
lea eax, [ebp - 0x48]
mov esi, dword [sym.imp.MSVCR100.dll__wcsicmp]
push 0x4b067c
push eax
call esi
add esp, 8
test eax, eax
je 0x47545e
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], ebx
jae 0x4753de
lea eax, [ebp - 0x48]
push 0x4b0684
push eax
call esi
add esp, 8
test eax, eax
je 0x47545e
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], ebx
jae 0x4753f8
lea eax, [ebp - 0x48]
push 0x4b068c
push eax
call esi
add esp, 8
test eax, eax
je 0x47545e
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], ebx
jae 0x475412
lea eax, [ebp - 0x48]
push 0x4b0694
push eax
call esi
add esp, 8
test eax, eax
je 0x47545e
lea eax, [ebp - 0x31a4]
push eax
lea ecx, [ebp - 0x64]
push ecx
call fcn.004738d0
mov eax, dword [ebp - 0x64]
add esp, 8
cmp dword [ebp - 0x50], ebx
jae 0x47543f
lea eax, [ebp - 0x64]
push eax
push 0x4ab4fc
lea edx, [ebp - 0x31a4]
push 0x1000
push edx
call edi
add esp, 0x10
lea ecx, [ebp - 0x64]
call fcn.004024d0
push 0xe958
mov eax, 0x129a8
lea esi, [ebp - 0x12b24]
call fcn.00497d20
lea eax, [ebp - 0x21490]
mov edi, esp
mov ecx, 0x4a6a
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00462730
mov esi, dword [ebp - 0x12b34]
add esp, 0x129ac
push eax
push esi
call sub.MSVCR100.dll_memcpy
mov ecx, dword [ebp + 0x40]
mov edx, dword [ebp - 0x12b2c]
mov dword [esi + 0xd8a4], ecx
mov eax, dword [edx + 0x80]
add esp, 0xc
cmp eax, 4
je 0x4754cb
cmp eax, 5
je 0x4754cb
mov dword [esi + 0xd8a8], 2
push 2
jmp 0x4754dd
cmp byte [ebp + 0x48], 0
jne 0x4754bd
mov dword [esi + 0xd8a8], 1
push 1
push str.installstate
add esi, 0x100
push esi
call fcn.00460cd0
add esp, 0xc
lea ecx, [ebp - 0x48]
call fcn.004024d0
lea ecx, [ebp - 0xb8]
call fcn.00403800
lea ecx, [ebp - 0x17c]
call fcn.00413840
lea ecx, [ebp - 0x2c]
call fcn.00403800
lea ecx, [ebp + 8]
call fcn.004024d0
lea ecx, [ebp + 0x24]
call fcn.004024d0
lea esp, [ebp - 0x214a0]
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