Function at 0x406220
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push 0xffffffffffffffff
push 0x430368
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x440de4]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ebp, ecx
push str.CDownLoadManager::GetVersionUrl
push str._s_enter
call section..text
add esp, 8
push 0x433652
lea ecx, [esp + 0x1c]
call fcn.004023b0
push 0x433652
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0
call fcn.004023b0
mov eax, dword [ebp + 0x20]
lea esi, [ebp + 0x20]
push 0x2e
push eax
mov byte [esp + 0x3c], 1
call fcn.0041977b
add esp, 8
test eax, eax
je 0x4062ed
sub eax, dword [esi]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x4062ed
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
sub eax, ecx
sub eax, 1
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call fcn.004039e0
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 2
call fcn.00401db0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x34], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4062ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
push 0
push 0
push 0
push 0x433c10
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
test edi, edi
mov dword [esp + 0x24], edi
jne 0x40637a
push str.Call_InternetOpenA_error
call section..text
push str.CDownLoadManager::GetVersionUrl
push str._s_leave
call section..text
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 0xc
mov byte [esp + 0x34], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40634b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x34], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406373
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x406652
movzx ecx, word [ebp + 0x18]
mov eax, dword [ebp + 0x14]
push 0
push 0
push 3
push 0
push 0
push ecx
push eax
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ebx, eax
test ebx, ebx
jne 0x4063da
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push str.Call_InternetConnectA_error
call section..text
push str.CDownLoadManager::GetVersionUrl
push str._s_leave
call section..text
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 0xc
mov byte [esp + 0x34], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40633f
mov eax, dword [ebp + 0x1c]
push 0
push 0x4400200
push str.text_xml
push 0
push 0
push eax
push str.POST
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
test edi, edi
jne 0x40644a
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
mov ecx, dword [esp + 0x24]
push ecx
call esi
push str.Call_HttpOpenRequestA_error
call section..text
push str.CDownLoadManager::GetVersionUrl
push str._s_leave
call section..text
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 0xc
mov byte [esp + 0x34], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40633f
push str.__xml_version_1.0__encoding_utf_8________________________________________root______________________________________rule_name_C_Version___C_Ver__rule______________________________________rule_name_DashBoard___DashBoard_Ver__rule_______________________________________root_
lea ecx, [esp + 0x18]
call fcn.004023b0
mov ecx, dword [esp + 0x1c]
push ecx
push str._C_Ver
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], 3
call fcn.004037d0
cmp dword [ebp + 0x28], 1
jne 0x40648d
mov edx, dword [ebp + 0x24]
push edx
push str.Use___s__to_get_url.
call section..text
mov eax, dword [ebp + 0x24]
add esp, 8
push eax
jmp 0x4064a0
mov eax, dword [esi]
push eax
push str.Use___s__to_get_url.
call section..text
mov esi, dword [esi]
add esp, 8
push esi
push str._DashBoard_Ver
lea ecx, [esp + 0x1c]
call fcn.004037d0
mov eax, dword [esp + 0x14]
cmp dword [eax - 4], 1
mov esi, dword [eax - 0xc]
jle 0x4064cb
mov ecx, esi
push ecx
lea ecx, [esp + 0x18]
call fcn.00401420
mov eax, dword [esp + 0x14]
push esi
push eax
push 0
push 0
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x40652d
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push ebx
call esi
mov edx, dword [esp + 0x24]
push edx
call esi
push str.Call_HttpSendRequestA_error
call section..text
push str.CDownLoadManager::GetVersionUrl
push str._s_leave
call section..text
add esp, 0xc
lea ecx, [esp + 0x14]
call fcn.004016b0
lea ecx, [esp + 0x1c]
call fcn.004016b0
lea ecx, [esp + 0x18]
call fcn.004016b0
xor eax, eax
jmp 0x406652
push 0x400
call fcn.00409924
add esp, 4
mov esi, eax
lea esp, [esp]
push 0x400
push 0
push esi
mov dword [esp + 0x2c], 0
call fcn.00419080
add esp, 0xc
lea eax, [esp + 0x20]
push eax
push 0x3ff
push esi
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4065bd
mov ecx, dword [esp + 0x20]
push esi
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x30]
push eax
mov byte [ecx + esi], 0
call fcn.00401e90
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 4
call fcn.00401db0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x34], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4065bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x20], 0
ja 0x406540
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push ebx
call esi
mov ecx, dword [esp + 0x24]
push ecx
call esi
mov esi, dword [esp + 0x3c]
push esi
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
call fcn.00401900
mov ecx, ebp
call fcn.00405970
test eax, eax
jne 0x406613
push str.CDownLoadManager::GetVersionUrl
push str._s_leave_call_GetLatestVerUrl_error__
call section..text
add esp, 8
jmp 0x40650b
mov eax, dword [esi]
push eax
push str.URL:__s_
call section..text
push str.CDownLoadManager::GetVersionUrl
push str._s_leave
call section..text
add esp, 0x10
lea ecx, [esp + 0x14]
call fcn.004016b0
lea ecx, [esp + 0x1c]
call fcn.004016b0
lea ecx, [esp + 0x18]
call fcn.004016b0
mov eax, 1
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4