Function at 0x402800
Capabilities:
Send data
Send data on socket
Send http request

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2024
call sub.ntdll.dll__chkstk
mov eax, 1
imul eax, eax, 0
mov byte [ebp + eax - 0x1024], 0
lea ecx, [ebp - 0x1024]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
call fcn.00401490
add esp, 0xc
test eax, eax
jne 0x402851
push 0
push 0x3f
push 0x403238
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_send]
or eax, 0xffffffff
jmp 0x402a0f
cmp dword [ebp + 0x10], 0
je 0x40288c
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0x1024]
push edx
call fcn.00402710
add esp, 8
test eax, eax
jne 0x40288c
push 0
push 0x8c
push str.HTTP_1.1_407_Proxy_Authentication_Required_r_nProxy_Authenticate:_Basic_realm_Proxy__r_nContent_Length:_33_r_n_r_n407_Proxy_Authentication_Required
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_send]
or eax, 0xffffffff
jmp 0x402a0f
movsx ecx, byte [ebp + 0xc]
cmp ecx, 0x43
jne 0x402926
mov dword [ebp - 0x18], 0
mov edx, 1
shl edx, 3
lea eax, [ebp + edx - 0x1024]
mov dword [ebp - 0x1c], eax
push 0x403234
mov ecx, 1
shl ecx, 3
lea edx, [ebp + ecx - 0x1024]
push edx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x40291e
mov eax, dword [ebp - 0x20]
mov byte [eax], 0
mov dword [ebp - 0x18], 1
push 0x403308
mov ecx, 1
shl ecx, 3
lea edx, [ebp + ecx - 0x1024]
push edx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40291e
mov eax, dword [ebp - 8]
mov byte [eax], 0
mov ecx, dword [ebp - 8]
add ecx, 1
push ecx
call dword [sym.imp.SHLWAPI.dll_StrToIntA]
mov word [ebp - 4], ax
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x10], edx
jmp 0x402947
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x2024]
push edx
lea eax, [ebp - 0x1024]
push eax
call fcn.004024a0
add esp, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x402968
push 0
push 0x3f
push str.HTTP_1.0_400_Bad_Request_r_nContent_Length:_15_r_n_r_n400_Bad_Request
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_send]
or eax, 0xffffffff
jmp 0x402a0f
mov edx, dword [ebp - 0x1c]
push edx
call fcn.00401bc0
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x402995
push 0
push 0x3f
push 0x403360
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_send]
or eax, 0xffffffff
jmp 0x402a0f
movzx ecx, word [ebp - 4]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.00401170
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4029c7
push 0
push 0x3f
push str.HTTP_1.0_502_Bad_Gateway_r_nContent_Length:_15_r_n_r_n502_Bad_Gateway
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_send]
or eax, 0xffffffff
jmp 0x402a0f
movsx ecx, byte [ebp + 0xc]
cmp ecx, 0x43
jne 0x4029e5
push 0
push 0x13
push str.HTTP_1.1_200_OK_r_n_r_n
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_send]
jmp 0x402a0c
lea eax, [ebp - 0x2024]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x24], eax
push 0
mov ecx, dword [ebp - 0x24]
push ecx
lea edx, [ebp - 0x2024]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret