Function at 0x50f790
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53c0c5
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x59a0a0]
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 esi, ecx
mov eax, dword [ebp + 8]
mov dword [esi + 0x3f0], eax
call fcn.00508b10
call fcn.00507410
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.0049e130
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x104
push eax
push 0x6f
push dword [esi + 0x3f0]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x50f823
lea eax, [ebp - 0x21c]
push eax
call fcn.004a65cc
xor ecx, ecx
add esp, 4
test eax, eax
setne cl
mov dword [esi + 0x4a0], ecx
mov ecx, esi
call fcn.00508480
mov ecx, esi
call fcn.005082d0
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0x59fcfc
call edi
mov ecx, esi
call fcn.005069c0
call fcn.00506840
mov ecx, esi
call fcn.005075e0
mov ecx, esi
call fcn.00505200
mov ecx, esi
call fcn.00506530
mov ecx, esi
call fcn.00507c70
call fcn.004f1760
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov ecx, esi
mov dword [esi + 0x494], eax
call fcn.00507450
mov ecx, esi
call fcn.00507d20
mov ecx, esi
call fcn.00508230
mov ecx, esi
call fcn.00507f10
mov ecx, esi
call fcn.00507e00
sub esp, 0xc
lea eax, [esi + 0x3c8]
lea ecx, [esi + 0x4d0]
mov dword [esi + 0x4f8], eax
call fcn.004e42a0
mov ecx, esi
call fcn.00508360
mov ecx, esi
call fcn.00507b30
mov ecx, esi
call fcn.004f6500
cmp dword [0x59fadc], 0
je 0x50f8df
mov eax, dword [0x59fae0]
mov dword [esi + 0x92c], eax
push 3
call sym.GameDownload.exe_curl_global_init
add esp, 4
call fcn.0044cd50
mov dword [esi + 0x9dc], eax
call sym.GameDownload.exe_curl_easy_init
mov ecx, esi
mov dword [esi + 0x9e0], eax
call fcn.004f8270
lea ecx, [ebp - 0x240]
call fcn.00429390
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x490]
mov dword [ebp - 0x1a8], eax
mov eax, dword [0x59fadc]
mov dword [ebp - 0x128], eax
mov eax, dword [esi + 0x494]
mov dword [ebp - 0x124], eax
mov eax, dword [esi + 0x498]
mov dword [ebp - 0x120], eax
mov eax, dword [0x59fae0]
mov dword [ebp - 0x110], eax
mov eax, dword [esi + 0x4a0]
mov dword [ebp - 0x10c], eax
lea eax, [esi + 0x4c0]
push eax
mov dword [ebp - 0x240], 0x64
mov dword [ebp - 0x238], 1
call edi
mov dword [ebp - 0x108], eax
mov eax, dword [esi + 0x478]
mov dword [ebp - 0x244], eax
test eax, eax
je 0x50f9ee
mov ecx, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x50f996
sub ecx, edx
sar ecx, 1
inc ecx
cmp ecx, 0x3fffffff
jg 0x50f9ee
lea ebx, [ecx + ecx]
mov eax, ebx
call fcn.0049bc00
mov edi, esp
test edi, edi
je 0x50f9e8
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
push dword [ebp - 0x244]
mov byte [edi], 0
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ecx, ecx
test eax, eax
cmove edi, ecx
jmp 0x50f9f0
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edi, edi
cmp byte [edi], 0
jne 0x50f9f9
xor ecx, ecx
jmp 0x50fa09
mov ecx, edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x50fa00
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x1a0]
call fcn.00406560
call ebx
mov dword [esi + 0x48c], eax
lea eax, [ebp - 0x240]
push ecx
push eax
call fcn.0044c609
mov ecx, eax
call fcn.0042af00
lea ecx, [ebp - 0x240]
mov dword [ebp - 4], 0xffffffff
call fcn.0042a2e0
mov eax, dword [esi]
mov ecx, esi
push 1
push 1
call dword [eax + 0x1c]
push str.Init_Finish.
call fcn.004e78a0
push eax
call fcn.004e76a0
add esp, 8
mov eax, 1
lea esp, [ebp - 0x254]
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.0049aa22
mov esp, ebp
pop ebp
ret 4