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

Disassembly:
push 0xffffffffffffffff
push 0x4b552b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
xor ebp, ebp
mov ebx, ecx
cmp edi, ebp
mov dword [esp + 0x10], ebx
jne 0x499abd
mov eax, dword [ebx + 0x5ca0]
push eax
push 0x4d5cd8
push 0x4d8db8
call fcn.0045c870
mov eax, 0x7d69
add esp, 0xc
mov dword [ebx + 0x5d4c], eax
mov dword [ebx + 0x5d50], 0x1eb
jmp 0x499d4e
push 0xe8
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x24], esi
cmp esi, ebp
mov dword [esp + 0x1c], ebp
je 0x499afe
lea ecx, [esi + 8]
call fcn.0045ee20
mov cl, byte [esp + 0x24]
mov dword [esi + 0xdc], ebp
mov byte [esi + 0xd8], cl
mov dword [esi + 0xe0], ebp
mov dword [esi + 0xe4], ebp
jmp 0x499b00
xor esi, esi
cmp esi, ebp
mov dword [esp + 0x1c], 0xffffffff
jne 0x499b46
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx + 0x5ca0]
push eax
push edx
push str.TaskID___u_ErrorCode__d_
push 0x4d8db8
call fcn.0045c870
mov eax, 0x797f
add esp, 0x10
mov dword [ebx + 0x5d4c], eax
mov dword [ebx + 0x5d50], 0x1f3
jmp 0x499d4e
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x2c]
push ebp
mov ebp, dword [esp + 0x2c]
push eax
push ecx
mov ecx, dword [edi + 0x20]
push ebx
push ebp
call fcn.0046dd40
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
mov edx, dword [eax + 0x5d90]
push edx
mov edx, dword [esp + 0x34]
push ecx
mov ecx, dword [edi]
push edx
mov edx, dword [eax + 0x5ca0]
push ebx
push ebp
push ecx
push edx
push str.__d._3d__AsyncStartDownload_from__I64d_to__I64d_HttpNum___d
push 0x4d8db8
call fcn.0045c790
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov dword [esi + 0xc0], ebp
mov dword [esi + 0xc8], eax
mov dword [esi + 0xd0], ebp
mov dword [esi + 0xc4], ebx
mov dword [esi + 0xcc], ecx
mov dword [esi + 0xd4], ebx
mov edx, dword [edi + 0x20]
add esp, 0x24
mov dword [esi], edx
mov eax, dword [edi]
mov dword [esi + 0xb0], eax
mov ecx, dword [edi + 8]
mov dword [esi + 0xb4], ecx
mov edx, dword [edi + 0xc]
lea ecx, [edi + 0x24]
mov dword [esi + 0xb8], edx
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
lea ebx, [esi + 0xd8]
mov edx, dword [ecx + 8]
mov eax, dword [eax]
mov ebp, edx
cmp eax, ebp
jae 0x499bfc
mov ebp, eax
cmp ebx, ecx
jne 0x499c73
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 8]
cmp eax, ebp
jae 0x499c11
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xran_void_]
mov ecx, ebx
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Split_void_]
mov eax, dword [ebx + 8]
mov edx, dword [esp + 0x24]
sub eax, ebp
cmp eax, edx
jae 0x499c2c
mov dword [esp + 0x24], eax
mov edx, eax
test edx, edx
jbe 0x499c69
mov ecx, dword [ebx + 4]
sub eax, edx
add edx, ebp
push eax
lea eax, [ecx + ebp*2]
lea edx, [ecx + edx*2]
push edx
push eax
call fcn.00414110
mov ebp, dword [ebx + 8]
mov ecx, dword [esp + 0x30]
add esp, 0xc
sub ebp, ecx
mov ecx, ebx
push 0
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Grow_unsigned_int__bool_]
test al, al
je 0x499c69
push ebp
mov ecx, ebx
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Eos_unsigned_int_]
mov ecx, ebx
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Split_void_]
jmp 0x499cf2
test ebp, ebp
jbe 0x499cbd
cmp ebp, edx
jne 0x499cbd
mov ecx, dword [ecx + 4]
test ecx, ecx
jne 0x499c88
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
cmp byte [ecx - 1], 0xfe
jae 0x499cbd
push 1
mov ecx, ebx
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov eax, dword [edi + 0x28]
test eax, eax
jne 0x499ca4
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
mov dword [ebx + 4], eax
mov ecx, dword [edi + 0x2c]
mov dword [ebx + 8], ecx
mov edx, dword [edi + 0x30]
mov dword [ebx + 0xc], edx
mov cl, byte [eax - 1]
inc cl
mov byte [eax - 1], cl
jmp 0x499cf2
push 1
push ebp
mov ecx, ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Grow_unsigned_int__bool_]
test al, al
je 0x499cf2
mov eax, dword [edi + 0x28]
test eax, eax
jne 0x499cd8
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push ebp
push eax
mov eax, dword [ebx + 4]
push eax
call fcn.00412590
mov ecx, dword [ebx + 4]
mov dword [ebx + 8], ebp
add esp, 0xc
mov word [ecx + ebp*2], 0
mov edx, dword [edi + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xac], edx
mov eax, dword [edi + 0x18]
mov dword [esi + 0xa8], eax
call ebx
mov dword [esi + 0x98], eax
call ebx
mov edx, dword [esi + 0xb0]
mov dword [esi + 0x9c], eax
mov ecx, dword [edi + 0x14]
mov dword [esi + 0xa4], 0xffffffff
mov dword [esi + 0xa0], ecx
push esi
mov esi, dword [esp + 0x14]
push edx
mov ecx, esi
call fcn.0049b490
mov eax, dword [edi]
push 0
push eax
mov ecx, esi
call fcn.0049abc0
xor eax, eax
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x14