Function at 0x503e10
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b16a0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
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
push 2
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x24], 0
call fcn.0056f8a6
mov edx, eax
mov eax, dword [ebp - 0x24]
push 0xffffffffffffffff
push 0x610f54
inc eax
mov dword [ebp - 0x28], edx
push eax
push edx
lea eax, [ebp - 0x10]
push eax
call fcn.00585d85
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.0056f8a6
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.00585d85
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.00500ba0
mov eax, dword [ebp - 0x20]
add esp, 0x44
test eax, eax
je 0x503efa
push 2
push eax
call fcn.0056f898
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 0x503f1a
push 2
push eax
call fcn.0056f898
add esp, 8
mov ecx, edi
call fcn.005020e0
test al, al
je 0x5045a4
push 2
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x24], 0
call fcn.0056f8a6
mov ecx, eax
mov eax, dword [ebp - 0x24]
push 0xffffffffffffffff
push 0x610f54
inc eax
mov dword [ebp - 0x28], ecx
push eax
push ecx
lea eax, [ebp - 0x14]
push eax
call fcn.00585d85
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.0056f8a6
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.00585d85
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.00500ba0
mov eax, dword [ebp - 0x20]
add esp, 0x44
test eax, eax
je 0x503fed
push 2
push eax
call fcn.0056f898
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 0x50400d
push 2
push eax
call fcn.0056f898
add esp, 8
push dword [edi + 0x24]
mov edx, dword [edi + 0x20]
mov ecx, dword [edi + 0x1c]
call fcn.0050d370
add esp, 4
test al, al
je 0x50445a
mov ecx, edi
call fcn.00502400
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x24], 0
push 2
test al, al
je 0x504347
call fcn.0056f8a6
mov ecx, eax
mov eax, dword [ebp - 0x24]
push 0xffffffffffffffff
push 0x610f54
inc eax
mov dword [ebp - 0x28], ecx
push eax
push ecx
lea eax, [ebp - 0x14]
push eax
call fcn.00585d85
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.0056f8a6
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.00585d85
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.00500ba0
mov eax, dword [ebp - 0x20]
add esp, 0x44
test eax, eax
je 0x5040f9
push 2
push eax
call fcn.0056f898
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 0x504119
push 2
push eax
call fcn.0056f898
add esp, 8
push 2
mov dword [ebp - 0x14], 0
xor esi, esi
call fcn.0056f8a6
push 0xffffffffffffffff
push 0x610f54
mov ebx, eax
lea eax, [ebp - 0x14]
push 1
push ebx
push eax
mov dword [ebp - 0x28], ebx
call fcn.00585d85
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.0052f460
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x504177
push 2
push ebx
call fcn.0056f898
add esp, 8
mov esi, dword [edi + 0x2c]
mov eax, dword [esi + 4]
mov byte [esi + 9], 1
test eax, eax
jne 0x5041aa
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 0x5041b1
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push str.downloading
lea ecx, [ebp - 0x28]
call fcn.005455a0
mov dword [ebp - 4], 7
lea eax, [ebp - 0x28]
push dword [edi + 0x24]
mov ecx, dword [edi + 0x1c]
mov edx, 0x63ee90
push dword [edi + 0x20]
push eax
call fcn.0050d730
mov dword [ebp - 4], 0xffffffff
add esp, 0xc
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x5041f8
push 2
push eax
call fcn.0056f898
add esp, 8
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
nop
push 0xfa
call esi
mov ecx, edi
call fcn.00503940
mov eax, dword [edi + 0x2c]
mov eax, dword [eax + 0x70]
cmp eax, 5
je 0x5042d2
cmp eax, 6
jne 0x504200
push str.Download_failed_with_message___s_
lea ecx, [ebp - 0x20]
call fcn.005455a0
mov ecx, eax
mov dword [ebp - 4], 0xa
mov eax, dword [edi + 0x2c]
add eax, 0x38
push eax
push ecx
call fcn.00545b40
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
mov esi, eax
call fcn.00500b70
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 - 0x28]
push 0x610f54
call fcn.005455a0
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.00500ba0
add esp, 0x14
lea ecx, [ebp - 0x28]
call fcn.00500b70
test esi, esi
je 0x5045a0
mov eax, dword [esi]
test eax, eax
je 0x5042c3
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [esi], 0
push 8
mov dword [esi + 4], 0
push esi
jmp 0x504598
mov ecx, edi
call fcn.005025c0
test al, al
je 0x5045a4
push 0x610f54
lea ecx, [ebp - 0x28]
call fcn.005455a0
push str.Download_Completed
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 8
call fcn.005455a0
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.00500ba0
add esp, 0x14
lea ecx, [ebp - 0x20]
call fcn.00500b70
lea ecx, [ebp - 0x28]
call fcn.00500b70
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.0056f8a6
mov ecx, dword [ebp - 0x24]
push 0xffffffffffffffff
push 0x610f54
inc ecx
mov dword [ebp - 0x28], eax
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00585d85
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.0056f8a6
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.00585d85
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.00500ba0
mov eax, dword [ebp - 0x20]
add esp, 0x44
test eax, eax
je 0x5043f3
push 2
push eax
call fcn.0056f898
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 0x504413
push 2
push eax
call fcn.0056f898
add esp, 8
push 0xa0
mov dword [ebp - 0x14], 0
mov esi, 0x4f
call fcn.0056f8a6
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.00585d85
xor ecx, ecx
add esp, 0x18
test eax, eax
cmovne esi, ecx
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], 0xe
jmp 0x50457f
push 2
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x24], 0
call fcn.0056f8a6
mov ecx, dword [ebp - 0x24]
push 0xffffffffffffffff
push 0x610f54
inc ecx
mov dword [ebp - 0x28], eax
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00585d85
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.0056f8a6
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.00585d85
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.00500ba0
mov eax, dword [ebp - 0x20]
add esp, 0x44
test eax, eax
je 0x50451d
push 2
push eax
call fcn.0056f898
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 0x50453d
push 2
push eax
call fcn.0056f898
add esp, 8
push 0x80
mov dword [ebp - 0x18], 0
mov esi, 0x3f
call fcn.0056f8a6
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.00585d85
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.00506b20
add esp, 8
test ebx, ebx
je 0x5045a0
push 2
push ebx
call fcn.0056f898
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