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

Disassembly:
sub esp, 0x618
mov eax, dword [0x491870]
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.00451570
push 0x3fe
lea ecx, [esp + 0x232]
xor eax, eax
push ebp
push ecx
mov word [esp + 0x238], ax
call fcn.00451570
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 0x404002
sub eax, edx
sar eax, 1
push eax
push str.http:__
push esi
call fcn.0044fb8a
add esp, 0xc
test eax, eax
je 0x40403e
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x614]
xor ecx, esp
call fcn.0044dee5
add esp, 0x618
ret
mov eax, str.http:__
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x404046
sub eax, edx
push edi
sar eax, 1
lea esi, [esi + eax*2]
push 0x2f
push esi
call fcn.0044ef45
mov edi, eax
add esp, 8
cmp edi, ebp
je 0x40408c
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 0x404092
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.0044ef45
add esp, 8
cmp eax, ebp
je 0x4040bf
xor ecx, ecx
mov word [eax], cx
add eax, 2
push eax
call fcn.0044eb0e
add esp, 4
movzx ebx, ax
push ebp
push ebp
push ebp
push ebp
push 0x478f5c
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebp, eax
test ebp, ebp
je 0x4041a3
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 0x404104
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
jmp 0x404191
push 0
push SysReAllocString
push 0
push 0
push str.HTTP_1.1
lea eax, [esp + 0x238]
push eax
push 0x478f78
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
test edi, edi
je 0x404191
mov eax, dword [esp + 0x18]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404135
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 0x404150
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 0x404182
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
jmp 0x40418a
mov dword [esp + 0x14], 1
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test ebx, ebx
je 0x40419c
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.0044dee5
add esp, 0x618
ret