Function at 0x5025c0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b14a0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x63b404]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov byte [ebp - 0xd], 0
call fcn.00503940
push str.installing
lea ecx, [ebp - 0x3c]
call fcn.005455a0
mov dword [ebp - 4], 0
push 0xa2
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0x50
call fcn.0056f8a6
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.00585d85
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 0x63edd8
push dword [edi + 0x20]
push 0x63ebd0
push dword [edi + 0x1c]
push 0x63ee98
push edx
push 0x64
push 0x63f110
push eax
lea eax, [ebp - 0x24]
push 0x63ee90
push eax
call fcn.00545b40
mov ebx, eax
add esp, 0x48
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x14], ebx
test eax, eax
je 0x5026a5
push 2
push eax
call fcn.0056f898
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 0x5026cc
push 2
push eax
call fcn.0056f898
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.0056f8a6
mov ecx, eax
mov eax, dword [ebp - 0x30]
push 0xffffffffffffffff
push 0x610f54
inc eax
mov dword [ebp - 0x34], ecx
push eax
push ecx
lea eax, [ebp - 0x18]
push eax
call fcn.00585d85
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.0056f8a6
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.00585d85
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.00500ba0
mov eax, dword [ebp - 0x2c]
add esp, 0x44
test eax, eax
je 0x502797
push 2
push eax
call fcn.0056f898
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 0x5027be
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
test ebx, ebx
je 0x502d78
mov ecx, dword [0x648be8]
push 0
push ebx
call fcn.005001c0
test al, al
je 0x502bfb
mov ebx, dword [edi + 0x2c]
lea esi, [ebx + 0xb8]
mov ecx, esi
call fcn.00548700
push esi
lea ecx, [ebp - 0x34]
call fcn.00545740
mov ecx, dword [ebx + 0x98]
lea eax, [ebp - 0x34]
mov dword [ebp - 4], 4
push eax
add ecx, 0x30
call fcn.005457b0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x50282e
push 2
push eax
call fcn.0056f898
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 0x502873
push eax
push 4
push esi
push 0x550410
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 0x50287a
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.005afce0
mov edx, dword [esi + 0x24]
mov ecx, dword [esi + 0x20]
movsd qword [ebp - 0x2c], xmm0
call fcn.005afce0
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 [0x6278d8]
cvttsd2si esi, xmm1
call fcn.0056f8a6
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.00585d85
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 0x63edd8
push dword [edi + 0x20]
cvtdq2pd xmm0, xmm0
push 0x63ebd0
push dword [edi + 0x1c]
push 0x63ee98
call fcn.005afbc0
push edx
push eax
lea eax, [ebp - 0x34]
push 0x63ee20
push eax
call fcn.00545b40
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x34]
add esp, 0x28
test eax, eax
je 0x502965
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
test esi, esi
je 0x5029a7
mov ecx, dword [0x648be8]
push 0
push esi
call fcn.005001c0
mov eax, dword [esi]
test eax, eax
je 0x502995
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [esi], 0
push 8
push esi
mov dword [esi + 4], 0
call fcn.0056f898
add esp, 8
mov eax, dword [edi + 0x40]
mov eax, dword [eax + 0x38]
cmp eax, 1
je 0x502b0b
cmp eax, 0xffffffff
jne 0x502880
push 2
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x28], 0
call fcn.0056f8a6
mov ecx, eax
mov eax, dword [ebp - 0x28]
push 0xffffffffffffffff
push 0x610f54
inc eax
mov dword [ebp - 0x2c], ecx
push eax
push ecx
lea eax, [ebp - 0x1c]
push eax
call fcn.00585d85
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.0056f8a6
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.00585d85
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.00500ba0
mov eax, dword [ebp - 0x34]
add esp, 0x44
test eax, eax
je 0x502a83
push 2
push eax
call fcn.0056f898
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 0x502aa3
push 2
push eax
call fcn.0056f898
add esp, 8
push 0x48
mov dword [ebp - 0x1c], 0
mov esi, 0x23
call fcn.0056f8a6
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.00585d85
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.00506b20
add esp, 8
test ebx, ebx
je 0x502b03
push 2
push ebx
call fcn.0056f898
add esp, 8
mov ebx, dword [ebp - 0x14]
jmp 0x502d46
mov ecx, edi
call fcn.00502ee0
lea ecx, [ebp - 0x34]
push 0x610f54
test al, al
je 0x502b74
call fcn.005455a0
push str.Install_Completed
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 6
call fcn.005455a0
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.00500ba0
add esp, 0x14
lea ecx, [ebp - 0x2c]
call fcn.00500b70
lea ecx, [ebp - 0x34]
call fcn.00500b70
mov ebx, dword [ebp - 0x14]
mov byte [ebp - 0xd], 1
jmp 0x502d46
call fcn.005455a0
push str.Install_Failed_During_final_steps
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 8
call fcn.005455a0
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.00500ba0
add esp, 0x14
lea ecx, [ebp - 0x2c]
call fcn.00500b70
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
call fcn.00500b70
push str.Download_failed_because_the_install_could_not_be_completed
lea ecx, [ebp - 0x34]
call fcn.005455a0
mov dword [ebp - 4], 0xa
push dword [edi + 0x24]
mov edx, dword [edi + 0x20]
push ecx
mov ecx, dword [edi + 0x1c]
call fcn.00506b20
add esp, 8
lea ecx, [ebp - 0x34]
call fcn.00500b70
mov ebx, dword [ebp - 0x14]
jmp 0x502d46
push 2
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x28], 0
call fcn.0056f8a6
mov ecx, eax
mov eax, dword [ebp - 0x28]
push 0xffffffffffffffff
push 0x610f54
inc eax
mov dword [ebp - 0x2c], ecx
push eax
push ecx
lea eax, [ebp - 0x1c]
push eax
call fcn.00585d85
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.0056f8a6
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.00585d85
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.00500ba0
mov eax, dword [ebp - 0x34]
add esp, 0x44
test eax, eax
je 0x502cc2
push 2
push eax
call fcn.0056f898
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 0x502ce2
push 2
push eax
call fcn.0056f898
add esp, 8
push 0xb0
mov dword [ebp - 0x1c], 0
mov esi, 0x57
call fcn.0056f8a6
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.00585d85
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.00506b20
mov eax, dword [ebp - 0x34]
add esp, 8
test eax, eax
je 0x502d46
push 2
push eax
call fcn.0056f898
add esp, 8
mov byte [edi + 0x44], 1
mov eax, dword [ebx]
test eax, eax
je 0x502d61
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [ebx], 0
push 8
push ebx
mov dword [ebx + 4], 0
call fcn.0056f898
add esp, 8
jmp 0x502ec2
push 2
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x28], 0
call fcn.0056f8a6
mov ecx, dword [ebp - 0x28]
push 0xffffffffffffffff
push 0x610f54
inc ecx
mov dword [ebp - 0x2c], eax
push ecx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00585d85
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.0056f8a6
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.00585d85
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.00500ba0
mov eax, dword [ebp - 0x34]
add esp, 0x44
test eax, eax
je 0x502e3b
push 2
push eax
call fcn.0056f898
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 0x502e5b
push 2
push eax
call fcn.0056f898
add esp, 8
push 0x96
mov dword [ebp - 0x14], 0
mov esi, 0x4a
call fcn.0056f8a6
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.00585d85
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.00506b20
add esp, 8
test ebx, ebx
je 0x502ebe
push 2
push ebx
call fcn.0056f898
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