Function at 0x10042b00
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100dcf80
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x1010f16c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x7c], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x80]
mov eax, dword [ebp + 8]
push 4
push ecx
push 1
push 6
push dword [eax + 4]
mov dword [ebp - 0x80], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edx, dword [ebp + 8]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
mov edx, dword [edx + 4]
call fcn.100381e0
mov dword [ebp - 0x7c], 1
cmp dword [eax + 0x14], 0x10
jb 0x10042b7c
mov eax, dword [eax]
push eax
push str.DHCPServer_acppet_new_socket:_s.
call fcn.100561a0
mov edi, 1
add esp, 8
mov dword [ebp - 0x7c], edi
and edi, 0xfffffffe
mov dword [ebp - 0x7c], edi
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x10042bd0
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10042bc6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10042ed7
push edx
push ecx
call fcn.1009091b
add esp, 8
mov ebx, dword [esi + 4]
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
test ebx, ebx
je 0x10042c07
lock inc dword [ebx + 4]
mov ebx, dword [esi + 4]
mov ecx, dword [esi]
mov dword [ebp - 0x98], ecx
mov dword [ebp - 0x94], ebx
mov byte [ebp - 4], 2
mov dword [ebp - 0x90], eax
mov byte [ebp - 4], 3
mov edx, dword [esi + 8]
mov dword [ebp - 0x8c], edx
mov byte [ebp - 4], 4
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 5
lea edx, [ebp - 0x50]
mov dword [ebp - 0x50], 0x100f5d00
mov dword [ebp - 0x4c], 0x100000
mov dword [ebp - 0x2c], edx
mov byte [ebp - 4], 4
or edi, 8
mov dword [ebp - 0x7c], edi
lea edx, [ebp - 0xc0]
mov dword [ebp - 0x80], edx
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x88], edx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
test ebx, ebx
je 0x10042c81
lock inc dword [ebx + 4]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 6
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 7
mov dword [ebp - 0x9c], 0
mov byte [ebp - 4], 8
lea eax, [ebp - 0xc0]
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0xbc]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xc0], 0x100f5e0c
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xb4], eax
mov byte [ebp - 4], 8
lea eax, [ebp - 0xc0]
mov dword [ebp - 0x9c], eax
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0xe8]
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0xc4], 0
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x9c]
test ecx, ecx
je 0x10042d52
mov eax, dword [ecx]
lea edx, [ebp - 0xe8]
push edx
call dword [eax]
mov dword [ebp - 0xc4], eax
mov byte [ebp - 4], 0x10
mov dword [ebp - 0x54], 0
mov byte [ebp - 4], 0x11
push 0x30
call fcn.10090929
add esp, 4
mov esi, eax
lea eax, [ebp - 0xe8]
mov ecx, esi
push eax
call fcn.1004f0b0
mov dword [ebp - 0x54], esi
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0xe8]
mov dword [ebp - 0x84], eax
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0xc4]
test ecx, ecx
je 0x10042db9
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0xe8]
cmp ecx, eax
setne al
push eax
call edx
mov dword [ebp - 0xc4], 0
or edi, 0x10
mov dword [ebp - 0x7c], edi
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x9c]
test ecx, ecx
je 0x10042dea
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0xc0]
cmp ecx, eax
setne al
push eax
call edx
mov dword [ebp - 0x9c], 0
mov edx, dword [ebp + 8]
mov dword [ebp + 8], 0
mov dword [ebp - 0x80], edx
mov byte [ebp - 4], 0x15
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x78]
mov dword [ebp - 0x80], 0
push eax
push ecx
mov eax, esp
mov dword [ebp - 0x84], esp
mov dword [eax], edx
mov byte [ebp - 4], 0x16
mov byte [ebp - 4], 0x15
mov ecx, dword [ebp - 0x8c]
call fcn.1004aca0
mov byte [ebp - 4], 0xc
and edi, 0xffffffef
mov dword [ebp - 0x7c], edi
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x54]
test ecx, ecx
je 0x10042e54
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x78]
cmp ecx, eax
setne al
push eax
call edx
mov dword [ebp - 0x54], 0
and edi, 0xfffffff7
mov dword [ebp - 0x7c], edi
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x10042e7c
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x50]
cmp ecx, eax
setne al
push eax
call edx
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 0
test ebx, ebx
je 0x10042ea5
or esi, 0xffffffff
mov eax, esi
lock xadd dword [ebx + 4], eax
jne 0x10042ea5
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
lock xadd dword [ebx + 8], esi
dec esi
jne 0x10042ea5
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x10042eb9
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100908e7
mov esp, ebp
pop ebp
ret 4
call fcn.100abcda
int3