Function at 0x410280
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4635a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, str.POST
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x20c], eax
mov eax, dword [ebx]
mov dword [ebp - 0x214], esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4102d1
test dl, dl
je 0x4102cd
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4102d1
add eax, 2
add ecx, 2
test dl, dl
jne 0x4102b1
xor eax, eax
jmp 0x4102d6
sbb eax, eax
or eax, 1
test eax, eax
jne 0x410309
cmp dword [ebx + 0x1c], eax
jne 0x410309
cmp dword [0x463c18], eax
je 0x4102f4
push str.POST_request_with_no_Content_Length._n
call fcn.004011ea
add esp, 4
pop esi
mov eax, 0x190
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044590e
mov esp, ebp
pop ebp
ret
lea eax, [ebx + 0x18]
mov dword [ebx + 0x14], 1
push edi
push eax
call fcn.00401069
mov edi, eax
add esp, 4
test edi, edi
je 0x41034c
cmp dword [0x463c14], 0
je 0x410339
push str.Error_removing_hop_by_hop_headers._n
call fcn.004011ea
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044590e
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0xc]
cmp eax, 0xffffffff
je 0x410378
cmp eax, 0x50
je 0x410378
push eax
push dword [ebx + 8]
lea eax, [ebp - 0x204]
push str._s:_d
push 0x200
push eax
call fcn.0041ea20
add esp, 0x14
jmp 0x410394
push dword [ebx + 8]
lea eax, [ebp - 0x204]
push 0x45980c
push 0x200
push eax
call fcn.0041ea20
add esp, 0x10
test eax, eax
js 0x410741
cmp eax, 0x200
jae 0x410741
lea eax, [ebp - 0x204]
push eax
push str.Host
push dword [ebx + 0x18]
call fcn.00401294
push str.close
push str.Connection
push eax
mov dword [ebx + 0x18], eax
call fcn.00401294
mov dword [ebx + 0x18], eax
lea eax, [ebp - 0x210]
push eax
push ebx
call fcn.00401118
add esp, 0x20
mov edi, eax
push 0
push dword [ebp - 0x210]
push edi
push dword [esi]
call dword [sym.imp.WS2_32.dll_send]
push edi
mov edi, dword [sym.imp.MSVCR120.dll_free]
mov esi, eax
call edi
add esp, 4
test esi, esi
js 0x4106a1
mov eax, dword [ebx + 0x24]
cmp eax, dword [ebx + 0x20]
jae 0x41047c
mov esi, dword [ebp - 0x214]
mov ecx, 0x200
mov edi, dword [ebp - 0x20c]
mov eax, dword [ebx + 0x20]
sub eax, dword [ebx + 0x24]
cmp eax, 0x200
cmova eax, ecx
push eax
lea eax, [ebp - 0x204]
push eax
push edi
call fcn.004010cd
add esp, 0xc
test eax, eax
js 0x4106a1
je 0x410476
add dword [ebx + 0x24], eax
push 0
push eax
lea eax, [ebp - 0x204]
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
js 0x4106a1
mov eax, dword [ebx + 0x24]
mov ecx, 0x200
cmp eax, dword [ebx + 0x20]
jb 0x410423
mov edi, dword [sym.imp.MSVCR120.dll_free]
cmp dword [0x463c18], 0
je 0x41049e
mov eax, dword [ebx + 0x24]
mov ecx, dword [ebx + 0x20]
cmp eax, ecx
jae 0x41049e
push ecx
push eax
push str.Received_only__lu_request_body_bytes__Content_Length_was__lu_._n
call fcn.004011ea
add esp, 0xc
mov ebx, dword [ebp - 0x214]
lea eax, [ebp - 0x208]
push eax
push ebx
call fcn.00401221
add esp, 8
mov esi, eax
cmp dword [0x463c18], 1
jle 0x4104d2
push dword [ebp - 0x208]
push str.Status_Line:__s
call fcn.004011ea
add esp, 8
test esi, esi
je 0x410503
cmp dword [0x463c14], 0
je 0x4105e5
push str.Error_reading_Status_Line._n
call fcn.004011ea
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044590e
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x208]
call fcn.0040119f
push dword [ebp - 0x208]
mov esi, eax
call edi
add esp, 0xc
test esi, esi
je 0x410553
cmp dword [0x463c14], 0
je 0x4105e5
push str.Error_parsing_Status_Line._n
call fcn.004011ea
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044590e
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x208]
push eax
push ebx
call fcn.00401064
add esp, 8
test eax, eax
je 0x410590
cmp dword [0x463c14], 0
je 0x4105e5
push str.Error_reading_header._n
call fcn.004011ea
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044590e
mov esp, ebp
pop ebp
ret
cmp dword [0x463c18], 1
jle 0x4105ac
push dword [ebp - 0x208]
push str.Response_header:_n_s
call fcn.004011ea
add esp, 8
push dword [ebp - 0x208]
lea eax, [ebp - 0x230]
push eax
call fcn.00401104
push dword [ebp - 0x208]
mov esi, eax
call edi
add esp, 0xc
test esi, esi
je 0x4105f8
cmp dword [0x463c14], 0
je 0x4105e5
push str.Error_parsing_response_header._n
call fcn.004011ea
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044590e
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x224]
mov dword [ebp - 0x230], 1
push eax
call fcn.00401069
mov esi, eax
add esp, 4
test esi, esi
je 0x410640
cmp dword [0x463c14], 0
je 0x41062d
push str.Error_removing_hop_by_hop_headers._n
call fcn.004011ea
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044590e
mov esp, ebp
pop ebp
ret
push str.close
push str.Connection
push dword [ebp - 0x224]
call fcn.00401294
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.0040111d
push dword [ebp - 0x210]
mov edi, eax
push edi
push dword [ebp - 0x20c]
call fcn.004011d1
push edi
mov esi, eax
call dword [sym.imp.MSVCR120.dll_free]
add esp, 0x24
test esi, esi
jns 0x4106c0
lea eax, [ebp - 0x230]
push eax
call fcn.004011b8
add esp, 4
pop edi
pop esi
mov eax, 0x1f8
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044590e
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x220]
mov esi, dword [ebp - 0x218]
mov eax, dword [ebp - 0x21c]
test edx, edx
je 0x4106da
cmp esi, eax
jae 0x41071f
mov ecx, 0x200
test edx, edx
je 0x4106ea
sub eax, esi
cmp eax, ecx
cmovb ecx, eax
push ecx
lea eax, [ebp - 0x204]
push eax
push ebx
call fcn.004010cd
add esp, 0xc
test eax, eax
jle 0x41071f
add dword [ebp - 0x218], eax
push eax
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x20c]
call fcn.004011d1
add esp, 0xc
test eax, eax
jns 0x4106c0
lea eax, [ebp - 0x230]
push eax
call fcn.004011b8
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044590e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x1f5
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044590e
mov esp, ebp
pop ebp
ret