Function at 0x10038b20
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push edi
mov edi, eax
mov eax, dword [esi + 0xa0]
xor ebx, ebx
or eax, dword [esi + 0xa4]
jne 0x10038b51
mov ecx, dword [esi + 0xa8]
or ecx, dword [esi + 0xac]
jne 0x10038b51
push 7
push esi
call fcn.100362c0
add esp, 8
mov ebp, 2
or dword [edi], ebp
cmp dword [esi + 0x14c], ebx
jne 0x10038dab
cmp dword [esi + 0xc60], ebx
jne 0x10038b8a
mov edx, dword [esi + 0x8e8]
push edx
call dword [section..data]
add esp, 4
mov dword [esi + 0xc60], eax
test eax, eax
je 0x10038ced
test byte [esi + 0x590], 4
mov eax, dword [esi + 0xc60]
mov dword [esi + 0x150], eax
jne 0x10038c8d
mov eax, dword [esi + 0x154]
cmp dword [esi + 0x120], ebp
jne 0x10038c17
cmp dword [eax + 0x1a0], ebp
jne 0x10038c17
and dword [esi + 0x140], 0xfffffffd
lea ecx, [esp + 0x18]
push ecx
mov dword [esi + 0x120], 1
call fcn.100343f0
mov edx, dword [eax]
mov dword [esi + 0x110], edx
mov ecx, dword [eax + 4]
mov dword [esi + 0x114], ecx
mov edx, dword [eax + 8]
mov dword [esi + 0x118], edx
mov eax, dword [eax + 0xc]
mov dword [esi + 0x11c], eax
and dword [edi], 0xfffffffd
mov eax, dword [esi + 0xa5c]
cdq
push 0
push edx
push eax
push esi
call fcn.100178c0
add esp, 0x14
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
mov edi, dword [esp + 0x2c]
mov ecx, dword [edi + 0x2b8]
test dword [ecx + 0x40], 0x40003
je 0x10038c36
xor ebx, ebx
cmp dword [eax + 0x1a0], 1
sete bl
mov eax, dword [esi + 0x8e8]
lea edx, [esp + 0x10]
push edx
push eax
push edi
call fcn.10037cc0
add esp, 0xc
test eax, eax
jne 0x10038f37
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x10], ebp
test ebp, ebp
je 0x10038c91
jg 0x10038ca0
and dword [esi + 0x140], 0xfffffffd
test byte [edi + 0x296], 1
je 0x10038f35
push edi
call fcn.100380b0
add esp, 4
test eax, eax
je 0x10038f35
pop edi
pop ebp
pop ebx
add esp, 0x1c
ret
mov edi, dword [esp + 0x2c]
test byte [esi + 0x140], 0x20
jne 0x10038f35
jmp 0x10038c61
mov dword [esi + 0x14c], ebp
test ebx, ebx
jne 0x10038d83
test byte [esi + 0xa8c], 0x40
je 0x10038d83
cmp dword [esi + 0xca8], ebx
jne 0x10038cf9
mov ecx, dword [esi + 0x8e8]
add ecx, ecx
push ecx
call dword [section..data]
add esp, 4
mov dword [esi + 0xca8], eax
test eax, eax
jne 0x10038cf9
push str.Failed_to_alloc_scratch_buffer_
push esi
call fcn.100149a0
add esp, 8
pop edi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x1c
ret
xor edi, edi
xor eax, eax
test ebp, ebp
jle 0x10038d65
mov edx, dword [esi + 0x150]
mov cl, byte [edi + edx]
cmp cl, 0xa
jne 0x10038d56
mov ecx, dword [esi + 0xca8]
mov byte [eax + ecx], 0xd
mov edx, dword [esi + 0xca8]
inc eax
mov byte [eax + edx], 0xa
test byte [esi + 0xa8c], 0x40
jne 0x10038d5f
mov ecx, dword [esi + 0xf00]
mov edx, dword [esi + 0xf04]
mov ebx, ecx
and ebx, edx
cmp ebx, 0xffffffff
je 0x10038d5f
add ecx, 1
adc edx, 0
mov dword [esi + 0xf00], ecx
mov dword [esi + 0xf04], edx
jmp 0x10038d5f
mov edx, dword [esi + 0xca8]
mov byte [eax + edx], cl
inc edi
inc eax
cmp edi, ebp
jl 0x10038d01
mov edi, dword [esp + 0x2c]
cmp eax, ebp
je 0x10038d83
mov ecx, dword [esi + 0xca8]
mov dword [esp + 0x10], eax
mov dword [esi + 0x150], ecx
mov dword [esi + 0x14c], eax
mov edx, dword [edi + 0x2b8]
test dword [edx + 0x40], 0x30000
je 0x10038daf
mov eax, dword [esp + 0x10]
push eax
push edi
call fcn.1001d830
add esp, 8
test eax, eax
je 0x10038daf
pop edi
pop ebp
pop ebx
add esp, 0x1c
ret
mov edi, dword [esp + 0x2c]
mov edx, dword [esi + 0x14c]
mov eax, dword [esi + 0x150]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [edi + 0x2e0]
push edx
push eax
push ecx
push edi
call fcn.10014580
add esp, 0x14
test eax, eax
jne 0x10038f37
mov edi, dword [edi + 0x2e0]
push eax
push eax
lea edx, [esp + 0x1c]
push edx
push 4
lea eax, [esp + 0x20]
push eax
push 0
push 0
push 0x4004747b
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x10038e1a
push 4
lea ecx, [esp + 0x14]
push ecx
push 0x1001
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test dword [esi + 0xa8c], 0x4000000
je 0x10038e3d
mov edx, dword [esp + 0xc]
mov eax, dword [esi + 0x150]
push edx
push eax
push 4
push esi
call fcn.10014830
add esp, 0x10
mov eax, dword [esp + 0xc]
cdq
add dword [esi + 0xa8], eax
adc dword [esi + 0xac], edx
mov ecx, dword [esi + 0xac]
mov edx, dword [esi + 0xa8]
push ecx
push edx
push esi
call fcn.10036750
mov eax, dword [esi + 0x590]
add esp, 0xc
test al, 0x40
je 0x10038e76
test eax, 0x100
je 0x10038ea9
mov ecx, dword [esi + 0xa8]
cmp ecx, dword [esi + 0xf00]
jne 0x10038ea9
mov edx, dword [esi + 0xac]
cmp edx, dword [esi + 0xf04]
jne 0x10038ea9
or eax, 4
push str.We_are_completely_uploaded_and_fine_n
push esi
mov dword [esi + 0x590], eax
call fcn.100148c0
add esp, 8
mov eax, dword [esi + 0x14c]
mov ecx, dword [esp + 0xc]
cmp eax, ecx
je 0x10038ece
add dword [esi + 0x150], ecx
pop edi
sub eax, ecx
pop ebp
mov dword [esi + 0x14c], eax
xor eax, eax
pop ebx
add esp, 0x1c
ret
cmp dword [esi + 0xc60], 0
jne 0x10038ef5
mov eax, dword [esi + 0x8e8]
push eax
call dword [section..data]
add esp, 4
mov dword [esi + 0xc60], eax
test eax, eax
je 0x10038ced
test byte [esi + 0x590], 4
mov ecx, dword [esi + 0xc60]
mov dword [esi + 0x150], ecx
mov dword [esi + 0x14c], 0
je 0x10038f35
mov eax, dword [esp + 0x2c]
and dword [esi + 0x140], 0xfffffffd
test byte [eax + 0x296], 1
je 0x10038f35
push eax
call fcn.100380b0
add esp, 4
test eax, eax
jne 0x10038f37
xor eax, eax
pop edi
pop ebp
pop ebx
add esp, 0x1c
ret