Function at 0x501890
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b0690
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x63a404]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov byte [ebp - 0xd], 0
call fcn.00502c10
push str.installing
lea ecx, [ebp - 0x3c]
call fcn.005447b0
mov dword [ebp - 4], 0
push 0xa2
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0x50
call fcn.0056ea97
mov ecx, eax
mov eax, dword [ebp - 0x20]
push 0xffffffffffffffff
push str.UPDATE_games_SET__s___s___s___L_WHERE__s___s_AND__s___s_AND__s___s_
inc eax
mov dword [ebp - 0x24], ecx
push eax
push ecx
lea eax, [ebp - 0x14]
push eax
call fcn.00584f75
mov ecx, dword [ebp - 0x20]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x20], ecx
mov byte [ebp - 4], 1
lea eax, [ebp - 0x3c]
push dword [edi + 0x24]
push 0x63dd98
push dword [edi + 0x20]
push 0x63db90
push dword [edi + 0x1c]
push 0x63de58
push edx
push 0x64
push 0x63e0c8
push eax
lea eax, [ebp - 0x24]
push 0x63de50
push eax
call fcn.00544d50
mov ebx, eax
add esp, 0x48
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x14], ebx
test eax, eax
je 0x501975
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x20], 0
test eax, eax
je 0x50199c
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [ebp - 0x3c], 0
push 2
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x30], 0
call fcn.0056ea97
mov ecx, eax
mov eax, dword [ebp - 0x30]
push 0xffffffffffffffff
push 0x60fec4
inc eax
mov dword [ebp - 0x34], ecx
push eax
push ecx
lea eax, [ebp - 0x18]
push eax
call fcn.00584f75
mov ecx, dword [ebp - 0x30]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], 2
push 0x20
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x28], 0xf
call fcn.0056ea97
mov ecx, eax
mov eax, dword [ebp - 0x28]
push 0xffffffffffffffff
push str.Install_Started
inc eax
mov dword [ebp - 0x2c], ecx
push eax
push ecx
lea eax, [ebp - 0x1c]
push eax
call fcn.00584f75
mov ecx, dword [ebp - 0x28]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x28], ecx
mov byte [ebp - 4], 3
lea eax, [ebp - 0x2c]
push dword [edi + 0x24]
mov edx, 1
xor ecx, ecx
push dword [edi + 0x20]
push dword [edi + 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.004ffe70
mov eax, dword [ebp - 0x2c]
add esp, 0x44
test eax, eax
je 0x501a67
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x28], 0
test eax, eax
je 0x501a8e
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
test ebx, ebx
je 0x502048
mov ecx, dword [0x647ac8]
push 0
push ebx
call fcn.004ff490
test al, al
je 0x501ecb
mov ebx, dword [edi + 0x2c]
lea esi, [ebx + 0xb8]
mov ecx, esi
call fcn.00547910
push esi
lea ecx, [ebp - 0x34]
call fcn.00544950
mov ecx, dword [ebx + 0x98]
lea eax, [ebp - 0x34]
mov dword [ebp - 4], 4
push eax
add ecx, 0x30
call fcn.005449c0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x501afe
push 2
push eax
call fcn.0056ea89
add esp, 8
mov eax, dword [ebx + 0x98]
mov ecx, dword [ebx + 0x88]
mov dword [eax + 0x3c], ecx
mov esi, dword [ebx + 0x98]
mov eax, dword [esi + 4]
mov byte [esi + 9], 1
test eax, eax
jne 0x501b43
push eax
push 4
push esi
push 0x54f620
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push dword [esi + 0xc]
mov dword [esi + 4], eax
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [esi + 4]
test eax, eax
je 0x501b4a
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xfa
call ebx
mov esi, dword [edi + 0x40]
mov edx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
call fcn.005aeed0
mov edx, dword [esi + 0x24]
mov ecx, dword [esi + 0x20]
movsd qword [ebp - 0x2c], xmm0
call fcn.005aeed0
movsd xmm1, qword [ebp - 0x2c]
divsd xmm1, xmm0
push 0x8e
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x30], 0x46
mulsd xmm1, qword [0x626810]
cvttsd2si esi, xmm1
call fcn.0056ea97
mov ecx, eax
mov eax, dword [ebp - 0x30]
push 0xffffffffffffffff
push str.UPDATE_games_SET__s___L_WHERE___s___s_AND__s___s_AND__s___s_
inc eax
mov dword [ebp - 0x34], ecx
push eax
push ecx
lea eax, [ebp - 0x1c]
push eax
call fcn.00584f75
mov ecx, dword [ebp - 0x30]
xor edx, edx
add esp, 0x18
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], 5
push dword [edi + 0x24]
movd xmm0, esi
push 0x63dd98
push dword [edi + 0x20]
cvtdq2pd xmm0, xmm0
push 0x63db90
push dword [edi + 0x1c]
push 0x63de58
call fcn.005aedb0
push edx
push eax
lea eax, [ebp - 0x34]
push 0x63dde0
push eax
call fcn.00544d50
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x34]
add esp, 0x28
test eax, eax
je 0x501c35
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
test esi, esi
je 0x501c77
mov ecx, dword [0x647ac8]
push 0
push esi
call fcn.004ff490
mov eax, dword [esi]
test eax, eax
je 0x501c65
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [esi], 0
push 8
push esi
mov dword [esi + 4], 0
call fcn.0056ea89
add esp, 8
mov eax, dword [edi + 0x40]
mov eax, dword [eax + 0x38]
cmp eax, 1
je 0x501ddb
cmp eax, 0xffffffff
jne 0x501b50
push 2
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x28], 0
call fcn.0056ea97
mov ecx, eax
mov eax, dword [ebp - 0x28]
push 0xffffffffffffffff
push 0x60fec4
inc eax
mov dword [ebp - 0x2c], ecx
push eax
push ecx
lea eax, [ebp - 0x1c]
push eax
call fcn.00584f75
mov ecx, dword [ebp - 0x28]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 0xb
push 0x42
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x30], 0x20
call fcn.0056ea97
mov ecx, eax
mov eax, dword [ebp - 0x30]
push 0xffffffffffffffff
push str.Install_Failed_during_extraction
inc eax
mov dword [ebp - 0x34], ecx
push eax
push ecx
lea eax, [ebp - 0x18]
push eax
call fcn.00584f75
mov ecx, dword [ebp - 0x30]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x30], ecx
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x34]
push dword [edi + 0x24]
mov edx, 2
xor ecx, ecx
push dword [edi + 0x20]
push dword [edi + 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004ffe70
mov eax, dword [ebp - 0x34]
add esp, 0x44
test eax, eax
je 0x501d53
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0
test eax, eax
je 0x501d73
push 2
push eax
call fcn.0056ea89
add esp, 8
push 0x48
mov dword [ebp - 0x1c], 0
mov esi, 0x23
call fcn.0056ea97
push 0xffffffffffffffff
push str.Download_failed_during_installation
mov ebx, eax
lea eax, [ebp - 0x1c]
push 0x24
push ebx
push eax
mov dword [ebp - 0x34], ebx
call fcn.00584f75
xor ecx, ecx
add esp, 0x18
test eax, eax
cmovne esi, ecx
mov dword [ebp - 0x30], esi
mov dword [ebp - 4], 0xd
push dword [edi + 0x24]
mov edx, dword [edi + 0x20]
push ecx
mov ecx, dword [edi + 0x1c]
call fcn.00505df0
add esp, 8
test ebx, ebx
je 0x501dd3
push 2
push ebx
call fcn.0056ea89
add esp, 8
mov ebx, dword [ebp - 0x14]
jmp 0x502016
mov ecx, edi
call fcn.005021b0
lea ecx, [ebp - 0x34]
push 0x60fec4
test al, al
je 0x501e44
call fcn.005447b0
push str.Install_Completed
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 6
call fcn.005447b0
mov byte [ebp - 4], 7
mov edx, 5
push dword [edi + 0x24]
xor ecx, ecx
push dword [edi + 0x20]
push dword [edi + 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.004ffe70
add esp, 0x14
lea ecx, [ebp - 0x2c]
call fcn.004ffe40
lea ecx, [ebp - 0x34]
call fcn.004ffe40
mov ebx, dword [ebp - 0x14]
mov byte [ebp - 0xd], 1
jmp 0x502016
call fcn.005447b0
push str.Install_Failed_During_final_steps
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 8
call fcn.005447b0
mov byte [ebp - 4], 9
mov edx, 2
push dword [edi + 0x24]
xor ecx, ecx
push dword [edi + 0x20]
push dword [edi + 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.004ffe70
add esp, 0x14
lea ecx, [ebp - 0x2c]
call fcn.004ffe40
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
call fcn.004ffe40
push str.Download_failed_because_the_install_could_not_be_completed
lea ecx, [ebp - 0x34]
call fcn.005447b0
mov dword [ebp - 4], 0xa
push dword [edi + 0x24]
mov edx, dword [edi + 0x20]
push ecx
mov ecx, dword [edi + 0x1c]
call fcn.00505df0
add esp, 8
lea ecx, [ebp - 0x34]
call fcn.004ffe40
mov ebx, dword [ebp - 0x14]
jmp 0x502016
push 2
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x28], 0
call fcn.0056ea97
mov ecx, eax
mov eax, dword [ebp - 0x28]
push 0xffffffffffffffff
push 0x60fec4
inc eax
mov dword [ebp - 0x2c], ecx
push eax
push ecx
lea eax, [ebp - 0x1c]
push eax
call fcn.00584f75
mov ecx, dword [ebp - 0x28]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 0xe
push 0xae
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x30], 0x56
call fcn.0056ea97
mov ecx, eax
mov eax, dword [ebp - 0x30]
push 0xffffffffffffffff
push str.Install_failed_because_the_database_could_not_be_updated_while_completing_the_download
inc eax
mov dword [ebp - 0x34], ecx
push eax
push ecx
lea eax, [ebp - 0x18]
push eax
call fcn.00584f75
mov ecx, dword [ebp - 0x30]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x30], ecx
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x34]
push dword [edi + 0x24]
mov edx, 2
xor ecx, ecx
push dword [edi + 0x20]
push dword [edi + 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004ffe70
mov eax, dword [ebp - 0x34]
add esp, 0x44
test eax, eax
je 0x501f92
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0
test eax, eax
je 0x501fb2
push 2
push eax
call fcn.0056ea89
add esp, 8
push 0xb0
mov dword [ebp - 0x1c], 0
mov esi, 0x57
call fcn.0056ea97
push 0xffffffffffffffff
push str.Download_failed_because_the_database_could_not_be_updated_while_completing_the_download
push 0x58
push eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00584f75
xor ecx, ecx
add esp, 0x18
test eax, eax
cmovne esi, ecx
mov dword [ebp - 0x30], esi
mov dword [ebp - 4], 0x10
push dword [edi + 0x24]
mov edx, dword [edi + 0x20]
push ecx
mov ecx, dword [edi + 0x1c]
call fcn.00505df0
mov eax, dword [ebp - 0x34]
add esp, 8
test eax, eax
je 0x502016
push 2
push eax
call fcn.0056ea89
add esp, 8
mov byte [edi + 0x44], 1
mov eax, dword [ebx]
test eax, eax
je 0x502031
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [ebx], 0
push 8
push ebx
mov dword [ebx + 4], 0
call fcn.0056ea89
add esp, 8
jmp 0x502192
push 2
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x28], 0
call fcn.0056ea97
mov ecx, dword [ebp - 0x28]
push 0xffffffffffffffff
push 0x60fec4
inc ecx
mov dword [ebp - 0x2c], eax
push ecx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00584f75
mov ecx, dword [ebp - 0x28]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 0x11
push 0x94
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x30], 0x49
call fcn.0056ea97
mov ecx, dword [ebp - 0x30]
push 0xffffffffffffffff
push str.Install_failed_because_the_sql_statement_to_complete_the_download_is_NULL
inc ecx
mov dword [ebp - 0x34], eax
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00584f75
mov ecx, dword [ebp - 0x30]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x30], ecx
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x34]
push dword [edi + 0x24]
mov edx, 2
xor ecx, ecx
push dword [edi + 0x20]
push dword [edi + 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004ffe70
mov eax, dword [ebp - 0x34]
add esp, 0x44
test eax, eax
je 0x50210b
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0
test eax, eax
je 0x50212b
push 2
push eax
call fcn.0056ea89
add esp, 8
push 0x96
mov dword [ebp - 0x14], 0
mov esi, 0x4a
call fcn.0056ea97
push 0xffffffffffffffff
push str.Download_failed_because_the_sql_statement_to_complete_the_download_is_NULL
mov ebx, eax
lea eax, [ebp - 0x14]
push 0x4b
push ebx
push eax
mov dword [ebp - 0x3c], ebx
call fcn.00584f75
xor ecx, ecx
add esp, 0x18
test eax, eax
cmovne esi, ecx
mov dword [ebp - 0x38], esi
mov dword [ebp - 4], 0x13
push dword [edi + 0x24]
mov edx, dword [edi + 0x20]
push ecx
mov ecx, dword [edi + 0x1c]
call fcn.00505df0
add esp, 8
test ebx, ebx
je 0x50218e
push 2
push ebx
call fcn.0056ea89
add esp, 8
mov byte [edi + 0x44], 1
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret