Function at 0x408dd0
Capabilities:
Connect to http server
Create http request
Send data
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4236cf
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x42e0b0]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc8], edx
mov edx, dword [section..data]
mov dword [ebp - 0xac], ecx
mov dword [ebp - 0xb0], eax
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0xa8], eax
mov dword [ebp - 4], 0
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ebx, dword [0x4365b8]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x8c], eax
mov byte [ebp - 4], 1
test ebx, ebx
je 0x408e8e
test ebx, 0xffff0000
jne 0x408e8e
movzx esi, bx
push esi
call fcn.00407e50
add esp, 4
test eax, eax
je 0x408e99
push eax
mov eax, esi
lea edi, [ebp - 0x8c]
call fcn.004097e0
jmp 0x408e99
lea edi, [ebp - 0x8c]
call fcn.00409710
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x8c]
push ecx
push str.Host:__s_r_n
lea edi, [ebp - 0xa8]
call fcn.00409b90
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x8c]
add eax, 0xfffffff0
add esp, 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408edd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x98], eax
mov ecx, str.Accept:___r_n
mov byte [ebp - 4], 3
test ecx, 0xffff0000
jne 0x408f29
mov edx, ecx
movzx esi, dx
push esi
call fcn.00407e50
add esp, 4
test eax, eax
je 0x408f3e
push eax
mov eax, esi
lea edi, [ebp - 0x98]
call fcn.004097e0
jmp 0x408f3e
push str.Accept:___r_n
mov eax, 0xd
lea ebx, [ebp - 0x98]
call fcn.00409970
mov byte [ebp - 4], 4
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [ebp - 0xa0], eax
mov eax, str.Content_Type:_multipart_form_data__boundary__MULTI_PARTS_FORM_DATA_BOUNDARY_r_n
mov byte [ebp - 4], 5
test eax, 0xffff0000
jne 0x408f8c
mov ecx, eax
movzx esi, cx
push esi
call fcn.00407e50
add esp, 4
test eax, eax
je 0x408fa1
push eax
mov eax, esi
lea edi, [ebp - 0xa0]
call fcn.004097e0
jmp 0x408fa1
push str.Content_Type:_multipart_form_data__boundary__MULTI_PARTS_FORM_DATA_BOUNDARY_r_n
mov eax, 0x4e
lea ebx, [ebp - 0xa0]
call fcn.00409970
mov byte [ebp - 4], 6
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x90], eax
mov ecx, 0x42b450
mov byte [ebp - 4], 7
test ecx, 0xffff0000
jne 0x408ff1
mov edx, ecx
movzx esi, dx
push esi
call fcn.00407e50
add esp, 4
test eax, eax
je 0x409001
push eax
mov eax, esi
lea edi, [ebp - 0x90]
call fcn.004097e0
jmp 0x409001
mov ebx, 0x42b450
lea edi, [ebp - 0x90]
call fcn.00409710
push 0x87
lea eax, [ebp - 0x90]
push eax
mov byte [ebp - 4], 8
call fcn.004098a0
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x8c], eax
mov ecx, str._r_n____MULTI_PARTS_FORM_DATA_BOUNDARY___r_n
mov byte [ebp - 4], 9
test ecx, 0xffff0000
jne 0x409062
mov edx, ecx
movzx esi, dx
push esi
call fcn.00407e50
add esp, 4
test eax, eax
je 0x409077
push eax
mov eax, esi
lea edi, [ebp - 0x8c]
call fcn.004097e0
jmp 0x409077
push str._r_n____MULTI_PARTS_FORM_DATA_BOUNDARY___r_n
mov eax, 0x28
lea ebx, [ebp - 0x8c]
call fcn.00409970
mov eax, dword [ebp - 0x90]
mov ecx, dword [eax - 0xc]
mov edx, dword [ebp - 0x8c]
mov eax, dword [edx - 0xc]
mov dword [ebp - 0xb8], eax
xor eax, eax
push eax
push eax
push eax
push eax
push str.XGCrash
mov dword [ebp - 0xc0], ecx
mov byte [ebp - 0x85], 1
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xbc], eax
mov byte [ebp - 4], 0xb
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
mov dword [ebp - 0xe0], esi
test esi, esi
jne 0x4090e4
push 0x42c340
lea ecx, [ebp - 0xec]
push ecx
mov dword [ebp - 0xec], str.Open_Inter_Fail
call fcn.0040db6a
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionA]
push 4
lea edx, [ebp - 0x94]
push edx
push 2
push esi
mov dword [ebp - 0x94], 0x1388
call edi
push 4
lea eax, [ebp - 0x94]
push eax
push 5
push esi
call edi
push 4
lea ecx, [ebp - 0x94]
push ecx
push 5
push esi
call edi
push 4
lea edx, [ebp - 0x94]
push edx
push 6
push esi
call edi
push 4
lea eax, [ebp - 0x94]
push eax
push 6
push esi
call edi
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x9c], eax
mov ebx, dword [ebp - 0xa4]
mov byte [ebp - 4], 0xc
test ebx, ebx
je 0x409189
test ebx, 0xffff0000
jne 0x409189
movzx edi, bx
push edi
call fcn.00407e50
add esp, 4
test eax, eax
je 0x409194
push eax
mov eax, edi
lea edi, [ebp - 0x9c]
call fcn.004097e0
jmp 0x409194
lea edi, [ebp - 0x9c]
call fcn.00409710
mov ecx, dword [ebp + 0xc]
push 0
push 0
push 3
push 0
push 0
mov byte [ebp - 4], 0xb
mov edi, dword [ebp - 0x9c]
push ecx
push edi
push esi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov esi, eax
lea eax, [edi - 0x10]
mov dword [ebp - 0xb4], esi
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4091d8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jne 0x4091f7
push 0x42c340
lea ecx, [ebp - 0xd4]
push ecx
mov dword [ebp - 0xd4], 0x42b450
call fcn.0040db6a
mov ecx, dword [ebp - 0xac]
lea edx, [ebp - 0xac]
push edx
mov dword [ebp - 0xf8], 0x42b694
mov dword [ebp - 0xf4], 0
call fcn.00409650
mov eax, dword [eax]
push 0
push 0x4400040
lea ecx, [ebp - 0xf8]
push ecx
push 0
push str.HTTP_1.0
push eax
push str.POST
push esi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
mov eax, dword [ebp - 0xac]
add eax, 0xfffffff0
mov dword [ebp - 0xbc], esi
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40926b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jne 0x40928a
push 0x42c340
lea ecx, [ebp - 0xcc]
push ecx
mov dword [ebp - 0xcc], 0x42b450
call fcn.0040db6a
mov eax, dword [ebp - 0xa8]
mov ecx, dword [eax - 0xc]
mov ebx, dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
push 0xa0000000
push ecx
push eax
push esi
call ebx
test eax, eax
jne 0x4092c2
push 0x42c340
lea edx, [ebp - 0xe4]
push edx
mov dword [ebp - 0xe4], 0x42b450
call fcn.0040db6a
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx - 0xc]
push 0x80000000
push eax
push ecx
push esi
call ebx
test eax, eax
jne 0x4092f4
push 0x42c340
lea eax, [ebp - 0xc4]
push eax
mov dword [ebp - 0xc4], 0x42b450
call fcn.0040db6a
mov ecx, dword [ebp - 0xa0]
mov eax, dword [ecx - 0xc]
push 0x10000000
push eax
push ecx
push esi
call ebx
test eax, eax
jne 0x409326
push 0x42c340
lea ecx, [ebp - 0xe8]
push ecx
mov dword [ebp - 0xe8], 0x42b450
call fcn.0040db6a
mov edi, dword [ebp - 0xb0]
add edi, dword [ebp - 0xb8]
lea edx, [ebp - 0x84]
add edi, dword [ebp - 0xc0]
push edi
push str.Content_Length:__d_r_n
mov dword [ebp - 0xa4], edi
call fcn.00409bb0
lea eax, [ebp - 0x84]
add esp, 8
lea edx, [eax + 1]
jmp 0x409360
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409360
push 0xa0000000
sub eax, edx
push eax
lea ecx, [ebp - 0x84]
push ecx
push esi
call ebx
test eax, eax
jne 0x409398
push 0x42c340
lea edx, [ebp - 0xdc]
push edx
mov dword [ebp - 0xdc], 0x42b450
call fcn.0040db6a
xor eax, eax
push eax
push eax
push eax
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x104], eax
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x100], eax
mov dword [ebp - 0xfc], eax
lea eax, [ebp - 0x120]
push eax
push esi
mov dword [ebp - 0x120], 0x28
mov dword [ebp - 0x104], edi
call dword [sym.imp.WININET.dll_HttpSendRequestExA]
test eax, eax
jne 0x409416
push 0x42c340
lea ecx, [ebp - 0xf0]
push ecx
mov dword [ebp - 0xf0], 0x42b450
call fcn.0040db6a
push edi
call fcn.0040b2b3
mov edi, eax
add esp, 4
mov dword [ebp - 0x9c], edi
mov ebx, dword [ebp - 0xc0]
mov byte [ebp - 4], 0xd
mov edx, dword [ebp - 0x90]
push ebx
push edx
push edi
call fcn.0040e650
mov eax, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0xc8]
push eax
push ecx
add ebx, edi
push ebx
call fcn.0040e650
mov edx, dword [ebp - 0xb8]
mov eax, dword [ebp - 0x8c]
add ebx, dword [ebp - 0xb0]
push edx
push eax
push ebx
call fcn.0040e650
mov edx, dword [ebp - 0xa4]
add esp, 0x24
lea ecx, [ebp - 0xd0]
push ecx
push edx
push edi
push esi
mov dword [ebp - 0xd0], 0
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
jne 0x4094b1
push 0x42c340
lea eax, [ebp - 0xd8]
push eax
mov dword [ebp - 0xd8], 0x42b450
call fcn.0040db6a
push 0
push 8
push 0
push esi
call dword [sym.imp.WININET.dll_HttpEndRequestA]
push edi
call fcn.0040b2be
add esp, 4
jmp 0x4094dc
test esi, esi
je 0x4094eb
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
jmp 0x4094f1
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0xb4]
test eax, eax
je 0x4094fe
push eax
call esi
mov eax, dword [ebp - 0xe0]
test eax, eax
je 0x40950b
push eax
call esi
lea eax, [ebp - 0x8c]
call fcn.004096e0
lea eax, [ebp - 0x90]
call fcn.004096e0
lea eax, [ebp - 0xa0]
call fcn.004096e0
lea eax, [ebp - 0x98]
call fcn.004096e0
lea eax, [ebp - 0xa8]
call fcn.004096e0
mov al, byte [ebp - 0x85]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0040b2c9
mov esp, ebp
pop ebp
ret