Function at 0x5030e0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b0890
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
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
push 2
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x24], 0
call fcn.0056ea97
mov edx, eax
mov eax, dword [ebp - 0x24]
push 0xffffffffffffffff
push 0x60fec4
inc eax
mov dword [ebp - 0x28], edx
push eax
push edx
lea eax, [ebp - 0x10]
push eax
call fcn.00584f75
mov ecx, dword [ebp - 0x24]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], edx
push 0x32
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x1c], 0x18
call fcn.0056ea97
mov ecx, eax
mov eax, dword [ebp - 0x1c]
push 0xffffffffffffffff
push str.Download_Thread_starting
inc eax
mov dword [ebp - 0x20], ecx
push eax
push ecx
lea eax, [ebp - 0x14]
push eax
call fcn.00584f75
mov ecx, dword [ebp - 0x1c]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 4], 1
lea eax, [ebp - 0x20]
push dword [edi + 0x24]
mov edx, 1
xor ecx, ecx
push dword [edi + 0x20]
push dword [edi + 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004ffe70
mov eax, dword [ebp - 0x20]
add esp, 0x44
test eax, eax
je 0x5031ca
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1c], 0
test eax, eax
je 0x5031ea
push 2
push eax
call fcn.0056ea89
add esp, 8
mov ecx, edi
call fcn.005013b0
test al, al
je 0x503874
push 2
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x24], 0
call fcn.0056ea97
mov ecx, eax
mov eax, dword [ebp - 0x24]
push 0xffffffffffffffff
push 0x60fec4
inc eax
mov dword [ebp - 0x28], ecx
push eax
push ecx
lea eax, [ebp - 0x14]
push eax
call fcn.00584f75
mov ecx, dword [ebp - 0x24]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], 2
push 0x50
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x1c], 0x27
call fcn.0056ea97
mov ecx, eax
mov eax, dword [ebp - 0x1c]
push 0xffffffffffffffff
push str.Download_Thread_Prepeared_Download_Info
inc eax
mov dword [ebp - 0x20], ecx
push eax
push ecx
lea eax, [ebp - 0x10]
push eax
call fcn.00584f75
mov ecx, dword [ebp - 0x1c]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 4], 3
lea eax, [ebp - 0x20]
push dword [edi + 0x24]
mov edx, 1
xor ecx, ecx
push dword [edi + 0x20]
push dword [edi + 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004ffe70
mov eax, dword [ebp - 0x20]
add esp, 0x44
test eax, eax
je 0x5032bd
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1c], 0
test eax, eax
je 0x5032dd
push 2
push eax
call fcn.0056ea89
add esp, 8
push dword [edi + 0x24]
mov edx, dword [edi + 0x20]
mov ecx, dword [edi + 0x1c]
call fcn.0050c590
add esp, 4
test al, al
je 0x50372a
mov ecx, edi
call fcn.005016d0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x24], 0
push 2
test al, al
je 0x503617
call fcn.0056ea97
mov ecx, eax
mov eax, dword [ebp - 0x24]
push 0xffffffffffffffff
push 0x60fec4
inc eax
mov dword [ebp - 0x28], ecx
push eax
push ecx
lea eax, [ebp - 0x14]
push eax
call fcn.00584f75
mov ecx, dword [ebp - 0x24]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], 4
push 0x4c
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x1c], 0x25
call fcn.0056ea97
mov ecx, eax
mov eax, dword [ebp - 0x1c]
push 0xffffffffffffffff
push str.Download_Thread_Starting_the_download
inc eax
mov dword [ebp - 0x20], ecx
push eax
push ecx
lea eax, [ebp - 0x10]
push eax
call fcn.00584f75
mov ecx, dword [ebp - 0x1c]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 4], 5
lea eax, [ebp - 0x20]
push dword [edi + 0x24]
mov edx, 4
xor ecx, ecx
push dword [edi + 0x20]
push dword [edi + 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004ffe70
mov eax, dword [ebp - 0x20]
add esp, 0x44
test eax, eax
je 0x5033c9
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1c], 0
test eax, eax
je 0x5033e9
push 2
push eax
call fcn.0056ea89
add esp, 8
push 2
mov dword [ebp - 0x14], 0
xor esi, esi
call fcn.0056ea97
push 0xffffffffffffffff
push 0x60fec4
mov ebx, eax
lea eax, [ebp - 0x14]
push 1
push ebx
push eax
mov dword [ebp - 0x28], ebx
call fcn.00584f75
xor ecx, ecx
add esp, 0x18
test eax, eax
cmovne esi, ecx
mov dword [ebp - 0x24], esi
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 6
mov ecx, dword [edi + 0x2c]
push eax
call fcn.0052e660
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x503447
push 2
push ebx
call fcn.0056ea89
add esp, 8
mov esi, dword [edi + 0x2c]
mov eax, dword [esi + 4]
mov byte [esi + 9], 1
test eax, eax
jne 0x50347a
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 0x503481
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push str.downloading
lea ecx, [ebp - 0x28]
call fcn.005447b0
mov dword [ebp - 4], 7
lea eax, [ebp - 0x28]
push dword [edi + 0x24]
mov ecx, dword [edi + 0x1c]
mov edx, 0x63de50
push dword [edi + 0x20]
push eax
call fcn.0050c950
mov dword [ebp - 4], 0xffffffff
add esp, 0xc
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x5034c8
push 2
push eax
call fcn.0056ea89
add esp, 8
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
nop
push 0xfa
call esi
mov ecx, edi
call fcn.00502c10
mov eax, dword [edi + 0x2c]
mov eax, dword [eax + 0x70]
cmp eax, 5
je 0x5035a2
cmp eax, 6
jne 0x5034d0
push str.Download_failed_with_message___s_
lea ecx, [ebp - 0x20]
call fcn.005447b0
mov ecx, eax
mov dword [ebp - 4], 0xa
mov eax, dword [edi + 0x2c]
add eax, 0x38
push eax
push ecx
call fcn.00544d50
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
mov esi, eax
call fcn.004ffe40
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 - 0x28]
push 0x60fec4
call fcn.005447b0
mov dword [ebp - 4], 0xb
lea eax, [ebp - 0x28]
push dword [edi + 0x24]
mov edx, 2
xor ecx, ecx
push dword [edi + 0x20]
push dword [edi + 0x1c]
push esi
push eax
call fcn.004ffe70
add esp, 0x14
lea ecx, [ebp - 0x28]
call fcn.004ffe40
test esi, esi
je 0x503870
mov eax, dword [esi]
test eax, eax
je 0x503593
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [esi], 0
push 8
mov dword [esi + 4], 0
push esi
jmp 0x503868
mov ecx, edi
call fcn.00501890
test al, al
je 0x503874
push 0x60fec4
lea ecx, [ebp - 0x28]
call fcn.005447b0
push str.Download_Completed
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 8
call fcn.005447b0
mov byte [ebp - 4], 9
mov edx, 1
push dword [edi + 0x24]
xor ecx, ecx
push dword [edi + 0x20]
push dword [edi + 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004ffe70
add esp, 0x14
lea ecx, [ebp - 0x20]
call fcn.004ffe40
lea ecx, [ebp - 0x28]
call fcn.004ffe40
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0056ea97
mov ecx, dword [ebp - 0x24]
push 0xffffffffffffffff
push 0x60fec4
inc ecx
mov dword [ebp - 0x28], eax
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00584f75
mov ecx, dword [ebp - 0x24]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], 0xc
push 0xa0
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x1c], 0x4f
call fcn.0056ea97
mov ecx, dword [ebp - 0x1c]
push 0xffffffffffffffff
push str.Download_failed_because_the_OGameManifestDownloader_object_could_not_be_created
inc ecx
mov dword [ebp - 0x20], eax
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00584f75
mov ecx, dword [ebp - 0x1c]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x20]
push dword [edi + 0x24]
mov edx, 2
xor ecx, ecx
push dword [edi + 0x20]
push dword [edi + 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004ffe70
mov eax, dword [ebp - 0x20]
add esp, 0x44
test eax, eax
je 0x5036c3
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1c], 0
test eax, eax
je 0x5036e3
push 2
push eax
call fcn.0056ea89
add esp, 8
push 0xa0
mov dword [ebp - 0x14], 0
mov esi, 0x4f
call fcn.0056ea97
push 0xffffffffffffffff
push str.Download_failed_because_the_OGameManifestDownloader_object_could_not_be_created
mov ebx, eax
lea eax, [ebp - 0x14]
push 0x50
push ebx
push eax
mov dword [ebp - 0x28], ebx
call fcn.00584f75
xor ecx, ecx
add esp, 0x18
test eax, eax
cmovne esi, ecx
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], 0xe
jmp 0x50384f
push 2
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x24], 0
call fcn.0056ea97
mov ecx, dword [ebp - 0x24]
push 0xffffffffffffffff
push 0x60fec4
inc ecx
mov dword [ebp - 0x28], eax
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00584f75
mov ecx, dword [ebp - 0x24]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], 0xf
push 0x80
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x1c], 0x3f
call fcn.0056ea97
mov ecx, dword [ebp - 0x1c]
push 0xffffffffffffffff
push str.Download_failed_because_the_game_does_not_exist_in_the_database
inc ecx
mov dword [ebp - 0x20], eax
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00584f75
mov ecx, dword [ebp - 0x1c]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0x20]
push dword [edi + 0x24]
mov edx, 2
xor ecx, ecx
push dword [edi + 0x20]
push dword [edi + 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004ffe70
mov eax, dword [ebp - 0x20]
add esp, 0x44
test eax, eax
je 0x5037ed
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1c], 0
test eax, eax
je 0x50380d
push 2
push eax
call fcn.0056ea89
add esp, 8
push 0x80
mov dword [ebp - 0x18], 0
mov esi, 0x3f
call fcn.0056ea97
push 0xffffffffffffffff
push str.Download_failed_because_the_game_does_not_exist_in_the_database
mov ebx, eax
lea eax, [ebp - 0x18]
push 0x40
push ebx
push eax
mov dword [ebp - 0x28], ebx
call fcn.00584f75
xor ecx, ecx
add esp, 0x18
test eax, eax
cmovne esi, ecx
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], 0x11
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 0x503870
push 2
push ebx
call fcn.0056ea89
add esp, 8
mov byte [edi + 0x44], 1
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret