Function at 0x40e2d0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a894
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x44b00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x54], edx
mov ecx, dword [ebp + 0x18]
xor esi, esi
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
push ecx
push dword [ebp + 0x14]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0xc]
push eax
push dword [ebp - 0x68]
mov dword [ebp - 0x64], ecx
mov ecx, edx
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x24], esi
call fcn.0040ce30
test al, al
je 0x40e93b
push edi
push dword [ebp - 0x60]
push dword [ebp - 0x68]
call fcn.0040a2d0
test al, al
je 0x40e932
mov ecx, dword [ebp - 0x68]
lea edx, [edi + 0x34]
call fcn.00403d80
test al, al
je 0x40e932
cmp dword [edi + 0x18], 0xcc
je 0x40e71d
mov eax, dword [ebp - 0x60]
mov ecx, eax
cmp dword [eax + 0x14], 0x10
jb 0x40e374
mov ecx, dword [eax]
mov edx, dword [eax + 0x10]
push 4
push str.HEAD
call fcn.0042bae0
add esp, 8
test al, al
jne 0x40e71d
mov eax, dword [ebp - 0x60]
mov ecx, eax
cmp dword [eax + 0x14], 0x10
jb 0x40e39b
mov ecx, dword [eax]
mov edx, dword [eax + 0x10]
push 7
push str.CONNECT
call fcn.0042bae0
add esp, 8
test al, al
jne 0x40e71d
mov eax, dword [edi + 0x18]
cmp eax, 0x12c
jle 0x40e3d6
cmp eax, 0x190
jge 0x40e3d6
mov eax, dword [ebp - 0x54]
cmp byte [eax + 0x199], 0
je 0x40e3d6
mov al, 1
jmp 0x40e3d8
xor al, al
mov esi, dword [ebp - 0x60]
mov byte [ebp - 0x11], al
mov ecx, dword [esi + 0x134]
test ecx, ecx
je 0x40e406
test al, al
jne 0x40e406
mov eax, dword [ecx]
push edi
mov eax, dword [eax + 8]
call eax
test al, al
jne 0x40e406
mov eax, dword [ebp - 0x64]
mov dword [eax], 7
jmp 0x40e93b
cmp dword [esi + 0x15c], 0
je 0x40e457
lea eax, [ebp - 0x11]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x94]
mov eax, dword [ebp - 0x64]
mov esi, 1
movq xmm0, qword [ebp - 0x20]
mov dword [ebp - 0xac], eax
lea eax, [ebp - 0xb8]
mov dword [ebp - 0x58], ecx
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0xb8], 0x441fe4
movq qword [ebp - 0xb4], xmm0
mov dword [ebp - 0x94], eax
jmp 0x40e47d
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x90], 0x4425d4
lea edx, [ebp - 0x6c]
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0x6c], ecx
mov eax, ecx
mov esi, 2
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x50], esi
xor edx, edx
mov esi, dword [eax + 0x24]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], edx
test esi, esi
je 0x40e4dc
cmp esi, eax
jne 0x40e4cb
mov eax, dword [esi]
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, esi
mov eax, dword [eax + 4]
call eax
mov edx, eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x28], edx
mov ecx, dword [eax]
test ecx, ecx
je 0x40e4d9
mov esi, dword [ebp - 0x18]
cmp ecx, esi
mov edx, dword [ecx]
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov edx, dword [ebp - 0x28]
mov dword [esi + 0x24], 0
jmp 0x40e4d9
mov eax, dword [ebp - 0x58]
mov edx, esi
mov dword [ebp - 0x28], edx
mov dword [eax], 0
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x50]
test al, 2
je 0x40e515
and eax, 0xfffffffd
mov dword [ebp - 0x50], eax
test ecx, ecx
je 0x40e515
mov edx, dword [ecx]
lea eax, [ebp - 0x90]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x6c], 0
test al, 1
je 0x40e540
mov ecx, dword [ebp - 0x94]
and eax, 0xfffffffe
mov dword [ebp - 0x50], eax
test ecx, ecx
je 0x40e540
mov edx, dword [ecx]
lea eax, [ebp - 0xb8]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x11]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x94], 0
mov al, byte [eax + 0x1d1]
mov byte [ebp - 0x58], al
test edx, edx
je 0x40e5aa
lea eax, [ebp - 0x4c]
cmp edx, eax
jne 0x40e59d
mov eax, dword [edx]
lea ecx, [ebp - 0xb8]
push ecx
mov ecx, edx
mov eax, dword [eax + 4]
call eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x94], eax
test ecx, ecx
je 0x40e5aa
mov edx, dword [ecx]
lea eax, [ebp - 0x4c]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
jmp 0x40e5a3
mov dword [ebp - 0x94], edx
mov dword [ebp - 0x28], 0
movq xmm0, qword [ebp - 0x20]
lea eax, [ebp - 0xe0]
mov esi, dword [ebp - 0x64]
mov dword [ebp - 0xe0], 0x442444
movq qword [ebp - 0xdc], xmm0
mov dword [ebp - 0xd4], esi
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0x18], 0xffffffff
mov eax, dword [ebp - 0x68]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
sub esp, 0x14
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0xe0]
mov dword [ebp - 0x70], eax
mov eax, esp
push dword [ebp - 0x58]
mov dword [ebp - 0x7c], edi
movups xmm0, xmmword [ebp - 0x7c]
sub esp, 0x28
mov edx, esp
movups xmmword [eax], xmm0
mov dword [eax + 0x10], ecx
mov dword [ebp - 0x58], edx
mov dword [edx + 0x24], 0
mov ecx, dword [ebp - 0x94]
test ecx, ecx
je 0x40e66c
lea eax, [ebp - 0xb8]
cmp ecx, eax
jne 0x40e65f
mov eax, dword [ecx]
push edx
mov eax, dword [eax + 4]
call eax
mov ecx, dword [ebp - 0x58]
mov dword [ecx + 0x24], eax
mov ecx, dword [ebp - 0x94]
test ecx, ecx
je 0x40e66c
mov edx, dword [ecx]
lea eax, [ebp - 0xb8]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
jmp 0x40e662
mov dword [edx + 0x24], ecx
mov dword [ebp - 0x94], 0
lea edx, [ebp - 0x24]
mov ecx, edi
call fcn.00428130
mov ecx, dword [ebp - 0xbc]
add esp, 0x40
mov byte [ebp - 0x59], al
test ecx, ecx
je 0x40e6a7
mov esi, dword [ecx]
lea eax, [ebp - 0xe0]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov esi, dword [ebp - 0x64]
mov dword [ebp - 0xbc], 0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x94]
test ecx, ecx
je 0x40e6c9
mov edx, dword [ecx]
lea eax, [ebp - 0xb8]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
cmp byte [ebp - 0x59], 0
jne 0x40e6fb
cmp dword [esi], 7
je 0x40e6da
mov dword [esi], 4
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x40e93b
mov edx, dword [ecx]
lea eax, [ebp - 0x4c]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
jmp 0x40e93b
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x40e71a
mov edx, dword [ecx]
lea eax, [ebp - 0x4c]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov esi, dword [ebp - 0x50]
push 0xa
push str.Connection
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
call fcn.00422ee0
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 3
push eax
lea eax, [ebp - 0x1c]
or esi, 4
push eax
lea ecx, [edi + 0x34]
mov dword [ebp - 0x24], esi
call fcn.0041fcb0
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x18]
je 0x40e773
add edx, 0x28
cmp dword [edx + 0x14], 0x10
jb 0x40e778
mov edx, dword [edx]
jmp 0x40e778
mov edx, 0x43f657
mov ecx, edx
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
lea eax, [ecx + 1]
mov dword [ebp - 0x18], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40e795
sub ecx, dword [ebp - 0x18]
push ecx
push edx
lea ecx, [ebp - 0x80]
call fcn.00422ee0
mov edx, dword [ebp - 0x70]
lea ecx, [ebp - 0x80]
or esi, 0x18
cmp dword [ebp - 0x6c], 0x10
mov dword [ebp - 0x50], esi
mov esi, dword [ebp - 0x80]
cmovae ecx, esi
push 5
push str.close
call fcn.0042bae0
add esp, 8
test al, al
jne 0x40e81a
cmp dword [edi + 0x14], 0x10
mov ecx, edi
jb 0x40e7dc
mov ecx, dword [edi]
mov edx, dword [edi + 0x10]
push 8
push str.HTTP_1.0
call fcn.0042bae0
add esp, 8
test al, al
je 0x40e814
cmp dword [edi + 0x30], 0x10
lea ecx, [edi + 0x1c]
jb 0x40e7fe
mov ecx, dword [edi + 0x1c]
mov edx, dword [edi + 0x2c]
push 0x16
push str.Connection_established
call fcn.0042bae0
add esp, 8
test al, al
je 0x40e81a
mov byte [ebp - 0x11], 0
jmp 0x40e81e
mov byte [ebp - 0x11], 1
mov eax, dword [ebp - 0x50]
test al, 8
je 0x40e85b
mov ecx, dword [ebp - 0x6c]
and eax, 0xfffffff7
mov dword [ebp - 0x50], eax
cmp ecx, 0x10
jb 0x40e85b
inc ecx
mov eax, esi
cmp ecx, 0x1000
jb 0x40e84e
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e88c
push ecx
push esi
call fcn.0043882c
mov eax, dword [ebp - 0x50]
add esp, 8
mov dword [ebp - 4], 0xffffffff
test al, 4
je 0x40e89c
mov ecx, dword [ebp - 0x28]
cmp ecx, 0x10
jb 0x40e89c
mov edx, dword [ebp - 0x3c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40e892
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40e892
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0043882c
add esp, 8
cmp byte [ebp - 0x11], 0
je 0x40e918
mov esi, dword [ebp - 0x54]
add esi, 0x44
push esi
mov dword [ebp - 0x24], esi
call dword [sym.imp.MSVCP140.dll__Mtx_lock]
add esp, 4
test eax, eax
je 0x40e8c0
push eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
mov edx, dword [ebp - 0x54]
mov dword [ebp - 4], 4
push 1
mov eax, dword [edx]
lea ecx, [edx + 0x3c]
push ecx
mov ecx, edx
call dword [eax + 0xc]
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x3c]
cmp eax, 0xffffffff
je 0x40e8eb
push 2
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x3c]
cmp eax, 0xffffffff
je 0x40e907
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 0x54]
mov dword [eax + 0x3c], 0xffffffff
push esi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.MSVCP140.dll__Mtx_unlock]
add esp, 4
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + 0x2dc]
test ecx, ecx
je 0x40e92e
mov eax, dword [ecx]
push edi
push dword [ebp - 0x60]
call dword [eax + 8]
mov al, 1
jmp 0x40e93d
mov eax, dword [ebp - 0x64]
mov dword [eax], 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043827f
mov esp, ebp
pop ebp
ret 0x14