Function at 0x10006bc0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp byte [esi + 0xe8], 0
mov eax, dword [esi + 0x10]
mov dword [esp + 0x18], eax
mov byte [esi + 0xa7], 1
jne 0x10006d45
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [esi + 0xac]
mov ecx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp eax, 0x16
ja case.0x10006c0b.10
jmp dword [eax*4 + 0x1000754c]
lea edx, [esp + 0x10]
mov ecx, esi
call fcn.10005990
test eax, eax
je 0x10006c4d
cmp byte [eax], 0
je 0x10006c4d
push dword [esp + 0x10]
mov edx, eax
mov ecx, esi
call fcn.10005ca0
add esp, 4
test eax, eax
je 0x100071e3
mov dword [esi + 0xac], 1
jmp 0x10007458
cmp dword [esi + 0xac], 0
jmp 0x10006f1f
xor edx, edx
mov ecx, esi
call fcn.10005990
test eax, eax
jne 0x10006c72
cmp dword [esi + 0xac], 1
jmp 0x10006f1f
cmp byte [eax], 0
jne 0x10006c8c
sub eax, dword [esi + 0x3c]
mov dword [esi + 0xac], 3
mov dword [esi + 0x68], eax
jmp 0x10007458
mov edx, eax
mov ecx, esi
call fcn.10006280
test eax, eax
je 0x1000746a
mov dword [esi + 0xac], 2
jmp 0x10007458
xor edx, edx
mov ecx, esi
call fcn.10005990
mov edi, eax
test edi, edi
jne 0x10006ce6
cmp dword [esi + 0xac], 2
jne 0x10007452
cmp byte [esi + 0xa5], 0
je case.0x10006c0b.10
mov edx, 1
mov ecx, esi
call fcn.10004a20
jmp 0x10007452
push 1
mov edx, edi
mov ecx, esi
call fcn.10006320
add esp, 4
test eax, eax
je 0x10007452
cmp byte [edi], 0
jne 0x10007452
sub edi, dword [esi + 0x3c]
mov dword [esi + 0xac], 3
mov dword [esi + 0x68], edi
jmp 0x10007452
mov ecx, esi
call fcn.10006440
cmp dword [esi + 0xac], 0x13
je 0x10007458
cmp byte [esi + 0xe8], 0
mov dword [esi + 0xac], 4
je 0x10007458
mov ecx, esi
call fcn.100057c0
mov byte [esi + 0xa7], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x1c], 0
jne 0x10006db6
mov ecx, dword [esi + 0x10]
lea eax, [esi + 0x24]
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push 0
push dword [esi + 0x34]
mov byte [esi + 0x9c], 1
push dword [esi + 0x2c]
mov eax, dword [ecx]
push dword [esi + 0x30]
push esi
push dword [ecx + 4]
call eax
add esp, 0x20
test eax, eax
jne 0x10006db6
push 0x10141f54
push dword [esi + 0x10]
call fcn.100085c0
add esp, 8
mov edx, 1
mov ecx, esi
call fcn.10004a20
cmp dword [esi + 0xac], 0x13
je 0x10007458
mov edi, dword [esi + 0x1c]
test edi, edi
jne 0x10006e13
mov ecx, dword [esi + 0x34]
test ecx, ecx
je 0x10006e0f
mov edx, 0x10141044
call fcn.10008a10
test eax, eax
je 0x10006e0f
push str.Expect
mov ecx, esi
call fcn.10004950
add esp, 4
test eax, eax
je 0x10006e0f
mov edx, str.100_continue
mov ecx, eax
call fcn.10008a10
test eax, eax
je 0x10006e0f
cmp dword [esi + 0x80], 0x19
jb 0x100074e5
test edi, edi
je 0x10006e4b
mov edi, dword [esi + 0x2c]
mov edx, 0x10142c90
mov ecx, edi
call fcn.10008a10
test eax, eax
jne 0x10006e36
mov edx, 0x10142c14
mov ecx, edi
call fcn.10008a10
test eax, eax
je 0x10006e4b
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0
mov byte [esi + 0xa5], 1
cmp dword [esi + 0x70], 0
jne 0x10006e5c
cmp dword [esi + 0x74], 0
mov eax, 9
je 0x10006e61
mov eax, 6
cmp byte [esi + 0xe8], 0
mov dword [esi + 0xac], eax
jne 0x10006d45
jmp 0x10007452
cmp dword [esi + 0x80], 0x19
jne case.0x10006c0b.10
mov dword [esi + 0xac], 6
mov dword [esp + 0x14], 0
jmp 0x100071b0
cmp dword [esi + 0x58], 0
je 0x10006eb7
mov ecx, esi
call fcn.10005dc0
cmp dword [esi + 0xac], 0x13
je 0x10007458
mov ecx, dword [esi + 0x70]
mov eax, dword [esi + 0x74]
test ecx, ecx
jne 0x10006ec5
test eax, eax
je 0x10006eed
cmp ecx, 0xffffffff
jne case.0x10006c0b.10
cmp eax, ecx
jne case.0x10006c0b.10
cmp dword [esi + 0x58], 0
jne case.0x10006c0b.10
cmp byte [esi + 0xa5], 0
je case.0x10006c0b.10
cmp byte [esi + 0xb8], 0
je 0x10006f48
cmp byte [esi + 0xa5], 0
jne 0x10006f48
mov dword [esi + 0xac], 7
jmp 0x10006f52
xor edx, edx
mov ecx, esi
call fcn.10005990
test eax, eax
jne 0x10006f43
cmp dword [esi + 0xac], 7
jne 0x10007458
cmp byte [esi + 0xa5], 0
je case.0x10006c0b.10
mov edx, 1
mov ecx, esi
call fcn.10004a20
jmp 0x10007458
cmp byte [eax], 0
jne 0x10006f64
mov dword [esi + 0xac], 9
cmp byte [esi + 0xe8], 0
jne 0x10006d45
jmp 0x10007458
mov edx, eax
mov ecx, esi
call fcn.10006280
test eax, eax
je 0x1000750f
mov dword [esi + 0xac], 8
jmp 0x10007458
xor edx, edx
mov ecx, esi
call fcn.10005990
mov edi, eax
test edi, edi
jne 0x10006f9f
cmp dword [esi + 0xac], 8
jmp 0x10006cc2
push 0x10
mov edx, edi
mov ecx, esi
call fcn.10006320
add esp, 4
test eax, eax
je 0x10007452
cmp byte [edi], 0
jne 0x10007452
cmp byte [esi + 0xe8], 0
mov dword [esi + 0xac], 9
jne 0x10006d45
jmp 0x10007452
cmp dword [esi + 0x1c], 0
jne 0x10007031
mov ecx, dword [esi + 0x10]
lea eax, [esi + 0x24]
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push 0
push dword [esi + 0x34]
mov byte [esi + 0x9c], 1
push dword [esi + 0x2c]
mov eax, dword [ecx]
push dword [esi + 0x30]
push esi
push dword [ecx + 4]
call eax
add esp, 0x20
test eax, eax
jne 0x10007031
push 0x10141f54
push dword [esi + 0x10]
call fcn.100085c0
add esp, 8
mov edx, 1
mov ecx, esi
call fcn.10004a20
cmp dword [esi + 0xac], 0x13
je 0x10007458
cmp dword [esi + 0x1c], 0
je case.0x10006c0b.10
mov ecx, esi
call fcn.10004fd0
test eax, eax
jne 0x10007519
push 0x10142d10
jmp 0x100071d8
mov eax, dword [esi + 0x1c]
push 4
mov dword [esp + 0x18], 0
cmp dword [eax + 0x14], 0
lea eax, [esp + 0x18]
push eax
push 1
push 6
push dword [esi + 0xa0]
je 0x100070cf
call ebx
mov ecx, dword [esi + 0x1c]
mov edx, esi
mov dword [esi + 0xac], 0x16
call fcn.10007890
cmp eax, 1
je 0x100070af
mov edx, 1
mov ecx, esi
call fcn.10004a20
jmp 0x10007458
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x10007458
push eax
mov dword [esi + 0x1c], 0
call fcn.10007930
add esp, 4
jmp 0x10007458
call ebx
xor eax, eax
cmp byte [esi + 0xb8], al
setne al
lea eax, [eax*2 + 0xd]
mov dword [esi + 0xac], eax
jmp 0x10007458
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0xc], 0
je 0x100070fd
add eax, 0x1c
push eax
call ecx
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x38], 0
jne 0x1000710c
cmp dword [eax + 0x3c], 0
je 0x10007164
mov ecx, esi
call fcn.10004ac0
cmp eax, 1
jne case.0x10006c0b.10
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0xc], 0
je 0x1000712b
add eax, 0x1c
push eax
call edi
mov dword [esi + 0xac], 0xc
jmp 0x100074ef
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0xc], 0
je 0x10007149
add eax, 0x1c
push eax
call ecx
mov eax, dword [esi + 0x1c]
mov edx, dword [eax + 0x38]
mov ecx, dword [eax + 0x3c]
test edx, edx
jne 0x1000715a
test ecx, ecx
je 0x10007164
cmp dword [esi + 0x78], edx
jne 0x1000717f
cmp dword [esi + 0x7c], ecx
jne 0x1000717f
cmp dword [eax + 0xc], 0
je 0x10007170
add eax, 0x1c
push eax
call edi
mov dword [esi + 0xac], 0x10
jmp 0x10007458
mov ecx, esi
call fcn.10004bf0
cmp eax, 1
mov eax, dword [esi + 0x1c]
jne 0x10007525
cmp dword [eax + 0xc], 0
je 0x1000719e
add eax, 0x1c
push eax
call edi
mov dword [esi + 0xac], 0xe
mov dword [esp + 0x14], 1
push 4
lea eax, [esp + 0x18]
push eax
push 1
push 6
push dword [esi + 0xa0]
call ebx
jmp 0x10007458
mov ecx, esi
call fcn.10004fd0
test eax, eax
jne 0x100071f4
push str.Closing_connection__failed_to_create_response_header__n
push dword [esi + 0x10]
call fcn.100085c0
add esp, 8
mov edx, 1
mov ecx, esi
call fcn.10004a20
jmp 0x10007458
cmp byte [esi + 0xb8], 0
je 0x10007214
mov eax, dword [esi + 0x60]
cmp eax, dword [esi + 0x64]
je 0x10007214
mov dword [esi + 0xac], 0x11
jmp 0x10007458
mov dword [esi + 0xac], 0x12
jmp 0x10007458
cmp dword [esi + 0xb4], 0x66
jne 0x1000724d
push dword [esi + 0x1c]
mov dword [esi + 0xac], 4
call fcn.10007930
add esp, 4
mov dword [esi + 0x1c], 0
jmp 0x10007458
push 4
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push 1
push 6
push dword [esi + 0xa0]
call ebx
push dword [esi + 0x1c]
call fcn.10007930
mov ecx, dword [esp + 0x1c]
add esp, 4
mov dword [esi + 0x1c], 0
cmp dword [ecx + 0x38], 0
je 0x100072a6
cmp byte [esi + 0x9c], 0
je 0x100072a6
push 0
lea eax, [esi + 0x24]
mov byte [esi + 0x9c], 0
push eax
mov eax, dword [ecx + 0x38]
push esi
push dword [ecx + 0x3c]
call eax
add esp, 0x10
cmp dword [esi + 0x38], 1
jne 0x10007365
cmp byte [esi + 0xa5], 0
jne 0x10007365
mov eax, dword [esi + 0x10]
mov ebx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x58]
mov edi, dword [esi + 0x20]
mov dword [esi + 0x34], 0
mov dword [esi + 0xac], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x38], 0
mov eax, dword [eax + 0x6c]
shr eax, 1
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ecx
test ebx, ebx
je 0x10007322
mov eax, dword [edi]
cmp ebx, eax
je 0x10007322
test ecx, ecx
je 0x10007320
push ecx
push ebx
push eax
call fcn.100a7200
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov ebx, dword [edi]
mov eax, dword [edi + 4]
mov dword [edi + 0xc], eax
cmp eax, ecx
jbe 0x1000733e
sub eax, ecx
push eax
mov eax, dword [edi]
add eax, ecx
push 0
push eax
call fcn.100a57f0
add esp, 0xc
test ebx, ebx
je 0x1000734f
mov eax, dword [esp + 0x1c]
add eax, 7
and eax, 0xfffffff8
mov dword [edi + 8], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0x3c], ebx
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [eax + 0x6c]
shr eax, 1
mov dword [esi + 0x54], eax
jmp 0x100073bb
xor edx, edx
mov ecx, esi
call fcn.10004a20
mov edi, dword [esi + 0x20]
test edi, edi
je 0x1000739f
cmp dword [edi + 0x10], 0
jne 0x10007387
push dword [edi]
call fcn.100a9867
add esp, 4
jmp 0x10007396
push 0x8000
push 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push edi
call fcn.100a9867
add esp, 4
mov dword [esi + 0x20], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
mov byte [esi + 0x9c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0xb4], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
mov byte [esi + 0xb8], 0
mov dword [esi + 0xc0], 0
mov dword [esi + 0xc4], 0
mov dword [esi + 0xc8], 0
mov dword [esi + 0xcc], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [esi + 0xe8], 0
jne 0x10006d45
jmp 0x10006bf6
push 0x10142c18
mov edx, 0x190
mov ecx, esi
call fcn.10005700
add esp, 4
cmp byte [esi + 0xe8], 0
jne 0x10006d45
mov edi, dword [esi + 0x90]
mov ebx, dword [esi + 0x94]
test edi, edi
jne 0x100074a3
test ebx, ebx
je 0x10006d45
call fcn.100083e0
sub eax, dword [esi + 0x88]
sbb edx, dword [esi + 0x8c]
cmp ebx, edx
jg 0x10006d45
jl 0x100074c6
cmp edi, eax
jae 0x10006d45
mov edx, 2
mov ecx, esi
call fcn.10004a20
mov byte [esi + 0xa7], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0xac], 5
push 4
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 1
push eax
push 1
push 6
push dword [esi + 0xa0]
call ebx
jmp case.0x10006c0b.10
push str._html__head__title_Request_malformed__title___head__body_Your_HTTP_request_was_syntactically_incorrect.__body___html_
jmp 0x1000746f
mov dword [esi + 0xac], 0xa
jmp 0x100074ef
cmp dword [eax + 0xc], 0
je case.0x10006c0b.10
add eax, 0x1c
push eax
call edi
jmp case.0x10006c0b.10
mov ecx, esi
call fcn.10006a10
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret