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

Disassembly:
sub esp, 0x618
mov eax, dword [0x47c944]
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.00447b40
push 0x3fe
lea ecx, [esp + 0x232]
xor eax, eax
push ebp
push ecx
mov word [esp + 0x238], ax
call fcn.00447b40
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 0x4034e2
sub eax, edx
sar eax, 1
push eax
push str.http:__
push esi
call fcn.004465f0
add esp, 0xc
test eax, eax
je 0x40351e
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x614]
xor ecx, esp
call fcn.00445369
add esp, 0x618
ret
mov eax, str.http:__
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x403526
sub eax, edx
push edi
sar eax, 1
lea esi, [esi + eax*2]
push 0x2f
push esi
call fcn.004460f0
mov edi, eax
add esp, 8
cmp edi, ebp
je 0x40356c
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 0x403572
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.004460f0
add esp, 8
cmp eax, ebp
je 0x40359f
xor ecx, ecx
mov word [eax], cx
add eax, 2
push eax
call fcn.00445d12
add esp, 4
movzx ebx, ax
push ebp
push ebp
push ebp
push ebp
push 0x46ac44
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebp, eax
test ebp, ebp
je 0x403683
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 0x4035e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
jmp 0x403671
push 0
push SysReAllocStringLen
push 0
push 0
push str.HTTP_1.1
lea eax, [esp + 0x238]
push eax
push 0x46ac60
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
test edi, edi
je 0x403671
mov eax, dword [esp + 0x18]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403615
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 0x403630
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 0x403662
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
jmp 0x40366a
mov dword [esp + 0x14], 1
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test ebx, ebx
je 0x40367c
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.00445369
add esp, 0x618
ret