Function at 0x406530
Capabilities:
Connect to http server
Create http request
Send data
Send http request

Disassembly:
sub esp, 0x618
mov eax, dword [0x4a05d0]
xor eax, esp
mov dword [esp + 0x614], eax
mov eax, dword [esp + 0x61c]
push ebx
push ebp
push esi
xor ebp, ebp
push 0x206
mov esi, ecx
lea edx, [esp + 0x1e]
xor ecx, ecx
push ebp
push edx
mov dword [esp + 0x20], eax
mov ebx, 0x50
mov dword [esp + 0x1c], ebp
mov word [esp + 0x24], cx
call fcn.0045db90
push 0x3fe
lea ecx, [esp + 0x232]
xor eax, eax
push ebp
push ecx
mov word [esp + 0x238], ax
call fcn.0045db90
mov eax, str.http:__
add esp, 0x18
mov dword [esp + 0xc], ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4065a2
sub eax, edx
sar eax, 1
push eax
push str.http:__
push esi
call fcn.0045b46a
add esp, 0xc
test eax, eax
je 0x4065de
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x614]
xor ecx, esp
call fcn.004597c7
add esp, 0x618
ret
mov eax, str.http:__
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4065e6
sub eax, edx
push edi
sar eax, 1
lea esi, [esi + eax*2]
push 0x2f
push esi
call fcn.0045a822
mov edi, eax
add esp, 8
cmp edi, ebp
je 0x40662c
mov edx, edi
sub edx, esi
sar edx, 1
inc edx
push edx
push esi
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
add edi, 2
push edi
lea ecx, [esp + 0x228]
push ecx
jmp 0x406632
push esi
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esp + 0x1c]
push 0x3a
push eax
call fcn.0045a822
add esp, 8
cmp eax, ebp
je 0x40665f
xor ecx, ecx
mov word [eax], cx
add eax, 2
push eax
call fcn.0045a3ee
add esp, 4
movzx ebx, ax
push ebp
push ebp
push ebp
push ebp
push 0x485bb8
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebp, eax
test ebp, ebp
je 0x406743
push 0
push 0
push 3
push 0
push 0
push ebx
lea edx, [esp + 0x34]
push edx
push ebp
call dword [sym.imp.WININET.dll_InternetConnectW]
mov ebx, eax
test ebx, ebx
jne 0x4066a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
jmp 0x406731
push 0
push SysReAllocString
push 0
push 0
push str.HTTP_1.1
lea eax, [esp + 0x238]
push eax
push 0x485bd4
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
test edi, edi
je 0x406731
mov eax, dword [esp + 0x18]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4066d5
sub eax, edx
sar eax, 1
mov edx, eax
mov eax, str.Accept_Language:_zh_cn__r_nContent_Type:_application_x_www_form_urlencoded_r_n
lea esi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4066f0
mov ecx, dword [esp + 0x18]
push edx
sub eax, esi
push ecx
sar eax, 1
push eax
push str.Accept_Language:_zh_cn__r_nContent_Type:_application_x_www_form_urlencoded_r_n
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x406722
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
jmp 0x40672a
mov dword [esp + 0x14], 1
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test ebx, ebx
je 0x40673c
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x624]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004597c7
add esp, 0x618
ret