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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6b0101
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x778400]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x13c], ecx
mov dword [ebp - 0x1a8], 0x1770
mov eax, dword [ebp - 0x13c]
movzx ecx, byte [eax + 0x2d5c]
test ecx, ecx
je 0x511890
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0x13c]
movzx eax, byte [edx + 0x2d5c]
test eax, eax
jne 0x510e13
jmp 0x511890
mov ecx, dword [ebp - 0x13c]
add ecx, 0x28
call fcn.00425840
mov dword [ebp - 0x198], eax
push 4
lea ecx, [ebp - 0x14]
call fcn.00413f70
lea ecx, [ebp - 0x14]
call fcn.004289c0
lea ecx, [ebp - 0x1b0]
push ecx
mov ecx, dword [ebp - 0x13c]
add ecx, 0x28
call fcn.00428960
mov edx, dword [eax]
mov dword [ebp - 0x14], edx
jmp 0x510e66
push 0
lea eax, [ebp - 0x1ac]
push eax
lea ecx, [ebp - 0x14]
call fcn.00428a00
lea ecx, [ebp - 0x1b4]
push ecx
mov ecx, dword [ebp - 0x13c]
add ecx, 0x28
call fcn.00428990
push eax
lea ecx, [ebp - 0x14]
call fcn.00428a50
movzx edx, al
test edx, edx
je 0x51188b
mov eax, dword [ebp - 0x13c]
movzx ecx, byte [eax + 0x2d5c]
test ecx, ecx
jne 0x510ea5
jmp 0x51188b
lea ecx, [ebp - 0x14]
call fcn.004289e0
add eax, 8
mov dword [ebp - 0x140], eax
lea ecx, [ebp - 0x14]
call fcn.004289e0
mov edx, dword [eax]
cmp edx, dword [ebp - 0x198]
jl 0x510ecd
jmp 0x51188b
mov eax, dword [ebp - 0x140]
cmp dword [eax + 0x48], 2
jne 0x51128c
mov ecx, dword [ebp - 0x140]
mov edx, dword [ecx + 0x18]
add edx, 1
mov eax, dword [ecx + 0x1c]
adc eax, 0
mov ecx, dword [ebp - 0x140]
mov dword [ebp - 0x158], ecx
mov dword [ebp - 0x17c], edx
mov dword [ebp - 0x178], eax
mov edx, dword [ebp - 0x158]
mov eax, dword [edx + 0x14]
cmp eax, dword [ebp - 0x178]
jb 0x510f3d
ja 0x510f2b
mov ecx, dword [ebp - 0x158]
mov edx, dword [ecx + 0x10]
cmp edx, dword [ebp - 0x17c]
jb 0x510f3d
mov eax, dword [ebp - 0x140]
mov dword [eax + 0x48], 1
jmp 0x510e55
mov ecx, dword [ebp - 0x140]
mov edx, dword [ecx + 0x20]
push edx
mov ecx, dword [ebp - 0x13c]
call fcn.00511c00
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0
jne 0x5111a8
mov eax, dword [ebp - 0x13c]
movzx ecx, byte [eax + 0x35d8]
test ecx, ecx
je 0x51106b
mov edx, dword [ebp - 0x13c]
add edx, 0x31c8
je 0x51106b
mov eax, dword [ebp - 0x13c]
add eax, 0x31c8
push eax
mov ecx, dword [ebp - 0x140]
mov edx, dword [ecx + 0x20]
push edx
call fcn.00670ab0
add esp, 8
test eax, eax
je 0x51106b
mov eax, dword [ebp - 0x13c]
add eax, 0x31c8
mov dword [ebp - 0x14c], eax
mov ecx, dword [ebp - 0x13c]
mov byte [ecx + 0x3610], 1
push 2
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x1d4], esp
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x1dc], esp
mov edx, dword [ebp - 0x140]
mov eax, dword [edx + 0x20]
push eax
call fcn.00419d50
mov dword [ebp - 0x1f8], eax
push esi
call fcn.005221a0
add esp, 0x1c
mov dword [ebp - 0x170], eax
mov ecx, dword [ebp - 0x170]
mov dword [ebp - 0x200], ecx
lea ecx, [ebp - 0x21c]
call fcn.0050d9b0
mov dword [ebp - 0x190], eax
mov edx, dword [ebp - 0x190]
mov dword [ebp - 0x168], edx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x168]
push eax
mov ecx, dword [ebp - 0x13c]
add ecx, 0x36dc
call fcn.00514e70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.0044d9b0
jmp 0x5111a8
mov ecx, dword [ebp - 0x140]
mov edx, dword [ecx]
push edx
push str.Download_Dispatch_:_download_error_fail___ID__d_._n
call fcn.004e64c0
add esp, 8
mov eax, dword [ebp - 0x13c]
mov byte [eax + 0x2d5c], 0
mov ecx, dword [ebp - 0x140]
mov edx, dword [ecx + 0x20]
push edx
lea ecx, [ebp - 0x30]
call fcn.00419d50
mov dword [ebp - 4], 1
push 0
push 0x6e1308
lea ecx, [ebp - 0x30]
call fcn.004294c0
mov dword [ebp - 0x150], eax
push 0
push 0x6e1310
lea ecx, [ebp - 0x30]
call fcn.004294c0
mov dword [ebp - 0x154], eax
cmp dword [ebp - 0x150], 0xffffffff
je 0x511137
cmp dword [ebp - 0x154], 0xffffffff
je 0x511137
mov eax, dword [ebp - 0x154]
cmp eax, dword [ebp - 0x150]
jle 0x511137
mov ecx, dword [ebp - 0x154]
sub ecx, 7
push ecx
mov edx, dword [ebp - 0x150]
add edx, 7
push edx
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x30]
call fcn.00444e00
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
call fcn.0041af60
push eax
push str.Download_Dispatch_link_:__s_._n
call fcn.004e64c0
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00419eb0
mov ecx, dword [ebp - 0x13c]
movzx edx, byte [ecx + 0x36cc]
test edx, edx
je 0x51115a
mov eax, dword [ebp - 0x13c]
mov dword [eax + 0x3694], 0x13
jmp 0x51116a
mov ecx, dword [ebp - 0x13c]
mov dword [ecx + 0x3694], 0x10
mov edx, dword [ebp - 0x13c]
mov eax, dword [ebp - 0x140]
mov ecx, dword [eax + 0x28]
mov dword [edx + 0x36c8], ecx
lea edx, [ebp - 0x30]
push edx
mov ecx, dword [ebp - 0x13c]
add ecx, 0x3698
call fcn.004195f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00419eb0
jmp 0x511890
mov ecx, 0x14
mov esi, dword [ebp - 0x140]
lea edi, [ebp - 0xe8]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xc4], 0
mov ecx, dword [ebp - 0xd8]
mov dword [ebp - 0xe0], ecx
mov edx, dword [ebp - 0xd4]
mov dword [ebp - 0xdc], edx
mov dword [ebp - 0xa4], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0xac], eax
mov ecx, dword [ebp - 0x13c]
add ecx, 0x28
call fcn.00425840
mov dword [ebp - 0xe8], eax
lea ecx, [ebp - 0xe8]
push ecx
mov ecx, dword [ebp - 0x13c]
add ecx, 0x28
call fcn.0050e5a0
mov ecx, 0x14
lea esi, [ebp - 0xe8]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0x140]
mov dword [edx + 0x48], 4
lea eax, [ebp - 0xe8]
push eax
mov ecx, dword [ebp - 0x13c]
add ecx, 0x28
call fcn.0050e5a0
push eax
mov ecx, dword [ebp - 0x13c]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x13c]
mov eax, dword [edx + 0x6c]
call eax
mov dword [ebp - 0x1f4], eax
jmp 0x511886
mov ecx, dword [ebp - 0x140]
cmp dword [ecx + 0x48], 0
jne 0x5115a3
mov edx, dword [ebp - 0x13c]
mov dword [ebp - 0x15c], edx
mov eax, dword [ebp - 0x15c]
cmp dword [eax + 0x2d4c], 0
ja 0x5112c6
mov ecx, dword [ebp - 0x15c]
cmp dword [ecx + 0x2d48], 0
jbe 0x51132f
mov edx, dword [ebp - 0x13c]
mov ecx, dword [edx + 0x2d50]
mov edx, dword [edx + 0x2d54]
call fcn.0067291e
mulsd xmm0, qword [0x7444e8]
mov eax, dword [ebp - 0x13c]
mov ecx, dword [eax + 0x2d48]
mov edx, dword [eax + 0x2d4c]
movsd qword [ebp - 0x1c0], xmm0
call fcn.0067291e
movsd xmm1, qword [ebp - 0x1c0]
divsd xmm1, xmm0
movsd qword [ebp - 0x1cc], xmm1
movsd xmm0, qword [ebp - 0x1cc]
comisd xmm0, xmmword [0x7444e0]
jbe 0x51132f
jmp 0x510e55
mov ecx, dword [ebp - 0x13c]
movzx edx, byte [ecx + 0x35d8]
test edx, edx
je 0x511375
mov eax, dword [ebp - 0x13c]
add eax, 0x31c8
je 0x511375
mov ecx, dword [ebp - 0x13c]
add ecx, 0x31c8
push ecx
mov edx, dword [ebp - 0x140]
mov eax, dword [edx + 0x20]
push eax
call fcn.00670ab0
add esp, 8
test eax, eax
jne 0x511375
jmp 0x510e55
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x1a0], eax
mov ecx, dword [ebp - 0x140]
mov edx, dword [ebp - 0x1a0]
sub edx, dword [ecx + 0x38]
cmp edx, dword [ebp - 0x1a8]
jb 0x51159e
mov eax, dword [ebp - 0x140]
mov ecx, dword [eax + 0x20]
push ecx
mov ecx, dword [ebp - 0x13c]
call fcn.00511c00
mov dword [ebp - 0x148], eax
cmp dword [ebp - 0x148], 0
jne 0x5114a7
mov edx, dword [ebp - 0x13c]
movzx eax, byte [edx + 0x35d8]
test eax, eax
je 0x5114a2
mov ecx, dword [ebp - 0x13c]
add ecx, 0x31c8
je 0x5114a2
mov edx, dword [ebp - 0x13c]
add edx, 0x31c8
mov dword [ebp - 0x148], edx
mov eax, dword [ebp - 0x13c]
mov byte [eax + 0x3610], 1
push 1
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x1e8], esp
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x1b8], esp
mov edx, dword [ebp - 0x140]
mov eax, dword [edx + 0x20]
push eax
call fcn.00419d50
mov dword [ebp - 0x1f0], eax
push esi
call fcn.005221a0
add esp, 0x1c
mov dword [ebp - 0x19c], eax
mov ecx, dword [ebp - 0x19c]
mov dword [ebp - 0x1c4], ecx
lea ecx, [ebp - 0x254]
call fcn.0050d9b0
mov dword [ebp - 0x174], eax
mov edx, dword [ebp - 0x174]
mov dword [ebp - 0x194], edx
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x194]
push eax
mov ecx, dword [ebp - 0x13c]
add ecx, 0x36dc
call fcn.00514e70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x254]
call fcn.0044d9b0
jmp 0x5114a7
jmp 0x510e55
mov ecx, 0x14
mov esi, dword [ebp - 0x140]
lea edi, [ebp - 0x138]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x140]
mov edx, dword [ebp - 0x140]
mov eax, dword [edx + 0x10]
mov dword [ecx + 0x18], eax
mov edx, dword [edx + 0x14]
mov dword [ecx + 0x1c], edx
mov dword [ebp - 0x114], 0
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x118], eax
mov ecx, dword [ebp - 0x128]
mov dword [ebp - 0x130], ecx
mov edx, dword [ebp - 0x124]
mov dword [ebp - 0x12c], edx
mov dword [ebp - 0xf4], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x100], eax
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0xfc], eax
mov ecx, dword [ebp - 0x13c]
add ecx, 0x28
call fcn.00425840
mov dword [ebp - 0x138], eax
lea ecx, [ebp - 0x138]
push ecx
mov ecx, dword [ebp - 0x13c]
add ecx, 0x28
call fcn.0050e5a0
mov ecx, 0x14
lea esi, [ebp - 0x138]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0x140]
mov dword [edx + 0x48], 1
lea eax, [ebp - 0x138]
push eax
mov ecx, dword [ebp - 0x13c]
add ecx, 0x28
call fcn.0050e5a0
push eax
mov ecx, dword [ebp - 0x13c]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x13c]
mov eax, dword [edx + 0x6c]
call eax
mov dword [ebp - 0x1ec], eax
jmp 0x511886
mov ecx, dword [ebp - 0x140]
cmp dword [ecx + 0x48], 3
jne 0x511881
mov ecx, dword [ebp - 0x13c]
call fcn.00511dc0
mov dword [ebp - 0x180], eax
mov edx, dword [ebp - 0x13c]
mov eax, dword [ebp - 0x180]
cmp eax, dword [edx + 0x2d58]
jl 0x5115dd
jmp 0x510e55
mov ecx, dword [ebp - 0x13c]
call fcn.00512760
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jl 0x51187f
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x13c]
add ecx, 0x28
call fcn.0050e5a0
mov ecx, 0x14
mov esi, eax
lea edi, [ebp - 0x98]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp - 0x80]
sub edx, dword [ebp - 0x88]
mov eax, dword [ebp - 0x7c]
sbb eax, dword [ebp - 0x84]
mov dword [ebp - 0x188], edx
mov dword [ebp - 0x184], eax
cmp dword [ebp - 0x184], 0
ja 0x51164d
cmp dword [ebp - 0x188], 0x7d000
jb 0x51187f
mov ecx, dword [ebp - 0x78]
push ecx
mov ecx, dword [ebp - 0x13c]
call fcn.00511c00
mov dword [ebp - 0x144], eax
cmp dword [ebp - 0x144], 0
jne 0x51175c
mov edx, dword [ebp - 0x13c]
movzx eax, byte [edx + 0x35d8]
test eax, eax
je 0x51174d
mov ecx, dword [ebp - 0x13c]
add ecx, 0x31c8
je 0x51174d
mov edx, dword [ebp - 0x13c]
add edx, 0x31c8
mov dword [ebp - 0x144], edx
mov eax, dword [ebp - 0x13c]
mov byte [eax + 0x3610], 1
push 3
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x1d0], esp
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x1fc], esp
mov edx, dword [ebp - 0x140]
mov eax, dword [edx + 0x20]
push eax
call fcn.00419d50
mov dword [ebp - 0x1d8], eax
push esi
call fcn.005221a0
add esp, 0x1c
mov dword [ebp - 0x1a4], eax
mov ecx, dword [ebp - 0x1a4]
mov dword [ebp - 0x1e4], ecx
lea ecx, [ebp - 0x238]
call fcn.0050d9b0
mov dword [ebp - 0x18c], eax
mov edx, dword [ebp - 0x18c]
mov dword [ebp - 0x16c], edx
mov dword [ebp - 4], 4
mov eax, dword [ebp - 0x16c]
push eax
mov ecx, dword [ebp - 0x13c]
add ecx, 0x36dc
call fcn.00514e70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.0044d9b0
jmp 0x51175c
mov ecx, dword [ebp - 0x140]
mov edx, dword [ecx + 0x20]
mov dword [ebp - 0x144], edx
mov eax, dword [ebp - 0x80]
sub eax, dword [ebp - 0x88]
mov ecx, dword [ebp - 0x7c]
sbb ecx, dword [ebp - 0x84]
push 0
push 2
push ecx
push eax
call fcn.0066eaa0
mov dword [ebp - 0x164], eax
mov dword [ebp - 0x74], 0
mov edx, dword [ebp - 0x144]
mov dword [ebp - 0x78], edx
mov eax, dword [ebp - 0x164]
cdq
add eax, dword [ebp - 0x88]
adc edx, dword [ebp - 0x84]
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], edx
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x8c]
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x54], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x60], eax
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x5c], edx
mov ecx, dword [ebp - 0x13c]
add ecx, 0x28
call fcn.00425840
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0x98]
push eax
mov ecx, dword [ebp - 0x13c]
add ecx, 0x28
call fcn.0050e5a0
mov ecx, 0x14
lea esi, [ebp - 0x98]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x98]
push ecx
mov ecx, dword [ebp - 0x13c]
add ecx, 0x28
call fcn.0050e5a0
push eax
mov edx, dword [ebp - 0x13c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x13c]
mov edx, dword [eax + 0x6c]
call edx
mov dword [ebp - 0x1e0], eax
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x13c]
add ecx, 0x28
call fcn.0050e5a0
add eax, 0x18
mov dword [ebp - 0x160], eax
mov eax, dword [ebp - 0x164]
cdq
mov ecx, dword [ebp - 0x160]
mov esi, dword [ecx]
sub esi, eax
mov eax, dword [ecx + 4]
sbb eax, edx
mov ecx, dword [ebp - 0x160]
mov dword [ecx], esi
mov dword [ecx + 4], eax
jmp 0x511886
jmp 0x510e55
jmp 0x510e55
jmp 0x510ddd
mov edx, dword [ebp - 0x13c]
movzx eax, byte [edx + 0x2d5d]
test eax, eax
jne 0x51191b
mov ecx, dword [ebp - 0x13c]
cmp dword [ecx + 0x2d64], 5
je 0x51191b
mov ecx, dword [ebp - 0x13c]
call fcn.0050ff40
test eax, eax
jne 0x51191b
push str.Download_Dispatch_:_CheckHash_download_failed._n
call fcn.004e64c0
add esp, 4
mov edx, dword [ebp - 0x13c]
mov dword [edx + 0x2d64], 4
mov eax, dword [ebp - 0x13c]
mov byte [eax + 0x2d5c], 0
mov ecx, dword [ebp - 0x13c]
mov edx, dword [ecx + 0x2d48]
push edx
mov eax, dword [ebp - 0x13c]
mov ecx, dword [eax + 0x2d50]
push ecx
mov edx, dword [ebp - 0x13c]
mov eax, dword [edx + 0x2d64]
push eax
mov ecx, dword [ebp - 0x13c]
call fcn.00511940
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0066c98d
mov esp, ebp
pop ebp
ret