Function at 0x512de0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x778400]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0xc]
add ecx, 0x2d38
call fcn.00514f90
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jg 0x512e26
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x3694], 0xd
mov eax, 0x80070057
jmp 0x512fed
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x2d48]
mov dword [ebp - 0x28], edx
mov eax, dword [ecx + 0x2d4c]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x2d50], 0
mov dword [ecx + 0x2d54], 0
mov dword [ebp - 0x18], 2
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x2c2c], 0
jle 0x512e7d
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x2c2c], 0xa
jg 0x512e7d
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x2c2c]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov dword [ecx + 0x2d58], edx
mov ecx, dword [ebp - 0xc]
add ecx, 0x28
call fcn.00447cb0
mov eax, dword [ebp - 0xc]
movzx ecx, byte [eax + 0x2d5d]
test ecx, ecx
jne 0x512eb6
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x2d5c], 1
mov eax, dword [ebp - 0x10]
cdq
push edx
push eax
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.0066eaa0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 8], 0
jmp 0x512ee1
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jge 0x512fbe
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x80], ecx
mov eax, dword [ebp - 8]
cdq
idiv dword [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0xc]
add ecx, 0x2d38
call fcn.0050e670
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 8]
cdq
mov ecx, dword [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x20]
push ecx
push edx
push eax
call fcn.00671950
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], edx
mov edx, dword [ebp - 0x10]
sub edx, 1
cmp dword [ebp - 8], edx
je 0x512f4a
mov eax, dword [ebp - 0x78]
add eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x74]
adc ecx, dword [ebp - 0x1c]
sub eax, 1
sbb ecx, 0
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], ecx
jmp 0x512f5c
mov edx, dword [ebp - 0x28]
sub edx, 1
mov eax, dword [ebp - 0x24]
sbb eax, 0
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x70], ecx
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x3c], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp - 0xc]
add ecx, 0x28
call fcn.0050e5a0
mov ecx, 0x14
lea esi, [ebp - 0x80]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
lea edx, [ebp - 8]
push edx
mov ecx, dword [ebp - 0xc]
add ecx, 0x28
call fcn.0050e5a0
push eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
mov ecx, dword [ebp - 0xc]
mov eax, dword [edx + 0x6c]
call eax
mov dword [ebp - 0x30], eax
jmp 0x512ed8
push 0
push 0
mov ecx, dword [ebp - 0xc]
push ecx
push 0x513980
push 0
push 0
call fcn.0066da1a
add esp, 0x18
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x2c]
push edx
push str.Download_InitDownload_:_start_download_dispatch__thread__d_._n
call fcn.004e64c0
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0066c98d
mov esp, ebp
pop ebp
ret