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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x818
mov eax, dword [0x64786c]
xor eax, esp
mov dword [esp + 0x814], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push 0x7ff
mov dword [esp + 0x10], eax
xor ebx, ebx
lea eax, [esp + 0x1d]
push ebx
push eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], edx
mov byte [esp + 0x24], 0
call fcn.00597130
add esp, 0xc
lea esi, [edi + 0x24]
call fcn.004182f0
lea esi, [edi + 0x10]
call fcn.004182f0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [edi + 0x40]
mov dword [edi + 0x3c], eax
cmp esi, ebx
jne 0x41707b
push 0x1038
call fcn.005971c5
add esp, 4
cmp eax, ebx
je 0x41703e
or ecx, 0xffffffff
mov dword [eax], vtable.CHttpProvider::HttpProviderData.0
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x28], edi
mov dword [eax + 0x102c], ebx
mov dword [eax + 0x1030], ebx
mov dword [eax + 0x1034], ebx
mov esi, eax
jmp 0x417040
xor esi, esi
mov ecx, dword [edi + 0x40]
cmp ecx, ebx
je 0x417051
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
xor ebx, ebx
mov dword [edi + 0x40], esi
cmp esi, ebx
jne 0x41707b
mov ecx, dword [esp + 0xc]
mov dword [ecx + 8], 2
xor eax, eax
pop esi
pop ebx
mov ecx, dword [esp + 0x814]
xor ecx, esp
call fcn.0059709c
mov esp, ebp
pop ebp
ret 8
cmp dword [0x653730], 1
jg 0x4170a9
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push edx
push eax
push ecx
push str.PHD_stauts:__u__keep_alive_time:__d__last_status_tick:__u.
push 0x101
push str.....mttpHttpProvider.cpp
push 1
call fcn.00401320
add esp, 0x1c
mov edx, dword [esp + 8]
cmp dword [edx + 0xc], ebx
jne 0x4170ee
cmp dword [0x653730], 1
jg 0x4170d4
push str.client_would_not_like_to_use_keep_alive_feature
push 0x106
push str.....mttpHttpProvider.cpp
push 1
call fcn.00401320
add esp, 0x10
mov eax, dword [edi]
mov edx, dword [eax + 0x40]
mov ecx, edi
call edx
cmp dword [esi + 4], ebx
je 0x4170ee
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xc], eax
cmp dword [esi + 4], 1
jne 0x4171c2
mov eax, dword [esi + 0xc]
mov ebx, dword [esi + 8]
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
imul ebx, ebx, 0x3e8
mov ecx, dword [esp + 0x10]
lea edx, [ebx + ecx - 0x3e8]
cmp eax, edx
ja 0x4171c0
cmp dword [0x653730], 1
jg 0x417143
push str.Use_Keep_alive_connection.
push 0x118
push str.....mttpHttpProvider.cpp
push 1
call fcn.00401320
add esp, 0x10
xor ebx, ebx
mov eax, 2
cmp dword [esi + 4], eax
je 0x41715b
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 8]
cmp dword [eax + 0x14], ebx
jne 0x41716e
mov ecx, 0x621c28
cmp dword [eax + 0x10], ebx
je 0x417173
mov ecx, str.POST
mov eax, dword [eax]
cmp eax, ebx
jne 0x41717e
mov eax, 0x621c34
push eax
push ecx
push str._s__s_HTTP_1.1_r_n
lea ecx, [esp + 0x24]
push 0x7ff
push ecx
call fcn.00599237
mov ebx, eax
add esp, 0x14
test ebx, ebx
jg 0x41720d
mov edx, dword [esp + 0xc]
mov dword [edx + 8], 8
xor eax, eax
pop esi
pop ebx
mov ecx, dword [esp + 0x814]
xor ecx, esp
call fcn.0059709c
mov esp, ebp
pop ebp
ret 8
xor ebx, ebx
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x14]
mov eax, dword [edi]
mov eax, dword [eax + 0x3c]
push ecx
mov ecx, dword [esp + 0xc]
push edx
mov edx, dword [ecx + 0x20]
push edx
mov ecx, edi
call eax
test eax, eax
jne 0x417145
cmp dword [esi + 4], ebx
je 0x4171f5
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xc], eax
xor eax, eax
pop esi
pop ebx
mov ecx, dword [esp + 0x814]
xor ecx, esp
call fcn.0059709c
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi]
mov edx, dword [eax + 0x38]
push 1
push ebx
lea ecx, [esp + 0x20]
push ecx
mov ecx, edi
mov dword [esp + 0x1c], 0
call edx
cmp eax, ebx
je 0x4172aa
mov edi, edi
cmp dword [0x653730], 1
jg 0x417252
push str.Keep_alive_connection_was_lost.
push 0x136
push str.....mttpHttpProvider.cpp
push 1
call fcn.00401320
add esp, 0x10
cmp dword [esp + 0x10], 1
jge 0x41737c
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
cmp eax, 0x10
jne 0x41737c
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x14]
mov eax, dword [edi]
mov eax, dword [eax + 0x3c]
push ecx
mov ecx, dword [esp + 0xc]
push edx
mov edx, dword [ecx + 0x20]
push edx
mov ecx, edi
call eax
test eax, eax
je 0x417343
mov edx, dword [edi]
mov edx, dword [edx + 0x38]
inc dword [esp + 0x10]
push 1
push ebx
lea eax, [esp + 0x20]
push eax
mov ecx, edi
call edx
cmp eax, ebx
jne 0x417230
mov edx, dword [edi]
mov eax, dword [edx + 8]
push 0x621c6c
push str.Accept
mov ecx, edi
call eax
mov edx, dword [edi]
mov eax, dword [edx + 8]
push str.MTTP
push str.User_Agent
mov ecx, edi
call eax
mov ebx, dword [esp + 0xc]
mov edx, dword [ebx]
mov eax, dword [edx + 0x14]
mov ecx, ebx
call eax
test eax, eax
jne 0x4173c4
mov edx, dword [ebx]
mov eax, dword [edx + 0xc]
mov ecx, ebx
call eax
mov edx, dword [ebx]
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x10]
mov ecx, ebx
call eax
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 0x80]
cmp ecx, 0x50
je 0x41730e
test eax, eax
je 0x417323
cmp ecx, 0x1bb
je 0x4173b5
cmp eax, 1
jne 0x4173b5
push ecx
push edx
lea ecx, [esp + 0x20]
push str._s:_u
push ecx
call fcn.005992e6
mov edx, dword [edi]
mov edx, dword [edx + 8]
add esp, 0x10
lea eax, [esp + 0x18]
push eax
jmp 0x4173bb
cmp dword [esi + 4], 0
je 0x417359
mov dword [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0xc]
mov dword [eax + 8], 5
xor eax, eax
pop esi
pop ebx
mov ecx, dword [esp + 0x814]
xor ecx, esp
call fcn.0059709c
mov esp, ebp
pop ebp
ret 8
cmp dword [esi + 4], 0
je 0x417392
mov dword [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xc], eax
mov ecx, dword [esp + 0xc]
mov dword [ecx + 8], 5
xor eax, eax
pop esi
pop ebx
mov ecx, dword [esp + 0x814]
xor ecx, esp
call fcn.0059709c
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi]
push edx
mov edx, dword [eax + 8]
push str.Host
mov ecx, edi
call edx
mov ebx, dword [esp + 8]
mov ecx, dword [ebx + 0x14]
test ecx, ecx
ja 0x4173d5
cmp dword [ebx + 0x10], 0
jbe 0x417409
lea eax, [esp + 0x18]
push eax
mov eax, dword [ebx + 0x10]
or edx, 0xffffffff
mul edx
xor ebx, ebx
add eax, ecx
adc edx, ebx
push edx
push eax
call fcn.004169a0
mov eax, dword [edi]
mov edx, dword [eax + 8]
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
push str.Content_length
mov ecx, edi
call edx
mov ebx, dword [esp + 8]
cmp dword [0x653730], 1
jg 0x41742f
mov eax, dword [ebx + 0xc]
push eax
push str.Init_connection:_keep_alive_d
push 0x166
push str.....mttpHttpProvider.cpp
push 1
call fcn.00401320
add esp, 0x14
cmp dword [ebx + 0xc], 0
mov eax, str.Keep_Alive
jne 0x41743f
mov eax, str.close
mov edx, dword [edi]
push eax
mov eax, dword [edx + 8]
push str.Connection
mov ecx, edi
call eax
mov ecx, dword [ebx + 0x1c]
test ecx, ecx
ja 0x41745b
cmp dword [ebx + 0x18], 0
jbe 0x41748f
mov eax, dword [ebx + 0x18]
lea edx, [esp + 0x18]
push edx
or edx, 0xffffffff
mul edx
xor ebx, ebx
add eax, ecx
adc edx, ebx
push edx
push eax
call fcn.004169a0
mov eax, dword [edi]
mov edx, dword [eax + 8]
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
push str.Addtional
mov ecx, edi
call edx
mov ebx, dword [esp + 8]
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x4174bc
push ebx
lea eax, [esp + 0x1c]
push 0x62080c
push eax
call fcn.005992e6
mov edx, dword [edi]
mov edx, dword [edx + 8]
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push str.Command_ID
mov ecx, edi
call edx
mov eax, 3
cmp dword [esi + 4], eax
je 0x4174d2
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x81c]
pop esi
pop ebx
mov dword [eax + 8], 0
xor ecx, esp
mov eax, 1
call fcn.0059709c
mov esp, ebp
pop ebp
ret 8