Function at 0x1007c120
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a13e0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x10112018]
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
cmp dword [ebp + 0x10], 0
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, ecx
je 0x1007c1b1
mov eax, dword [esi]
push 4
lea ecx, [ebp - 0x4c]
push ecx
push 4
push 0xffff
push eax
mov dword [ebp - 0x4c], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x1007c1b1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, dword [sym.imp.MSVCR100.dll__errno]
mov edi, eax
call esi
mov dword [eax], edi
call esi
cmp dword [eax], 0x273d
je 0x1007c1a1
call esi
cmp dword [eax], 0x273a
jne 0x1007c1a9
call esi
mov dword [eax], 0x81
or eax, 0xffffffff
jmp 0x1007c2ec
push edi
lea ecx, [ebp - 0x48]
call sym.ACE.dll_public:_void___thiscall_ACE_INET_Addr::constructor_class_ACE_INET_Addr_const__
xor eax, eax
mov dword [ebp - 4], eax
test byte [esi + 4], 1
jne 0x1007c1ff
movzx ecx, byte [edi + 0xf]
mov dx, word [edi + 0xe]
shl dx, 8
or dx, cx
cmp dword [ebp - 0x44], 2
movzx ecx, dx
jne 0x1007c1f7
mov edx, 2
mov dword [ebp - 0x44], 2
mov word [ebp - 0x3c], dx
mov dword [ebp - 0x40], 0x10
mov dword [ebp - 0x38], eax
rol cx, 8
mov word [ebp - 0x3a], cx
mov eax, dword [ebp - 0x44]
push eax
lea ecx, [ebp - 0x48]
push ecx
mov ecx, esi
call sym.ACE.dll_protected:_int___thiscall_ACE_SOCK_Dgram::shared_open_class_ACE_Addr_const___int_
cmp eax, 0xffffffff
je 0x1007c1a9
xor eax, eax
mov ecx, 2
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], 0x10
mov dword [ebp - 0x2c], vtable.ACE_INET_Addr.0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
cmp ecx, ecx
jne 0x1007c241
mov edx, ecx
mov word [ebp - 0x20], dx
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call sym.ACE.dll_public:_int___thiscall_ACE_SOCK::get_local_addr_class_ACE_Addr__const
cmp eax, 0xffffffff
jne 0x1007c26a
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x2c]
call sym.ACE.dll_public:_int___thiscall_ACE_INET_Addr::set_class_ACE_INET_Addr_const__
cmp eax, 0xffffffff
je 0x1007c1a9
mov edx, dword [edi + 4]
mov dword [esi + 0xc], edx
mov eax, dword [edi + 8]
mov dword [esi + 0x10], eax
mov ecx, dword [edi + 0xc]
mov dword [esi + 0x14], ecx
mov edx, dword [edi + 0x10]
mov dword [esi + 0x18], edx
mov eax, dword [edi + 0x14]
mov dx, word [ebp - 0x1e]
mov dword [esi + 0x1c], eax
mov ecx, dword [edi + 0x18]
rol dx, 8
rol dx, 8
mov dword [esi + 0x20], ecx
mov word [esi + 0x16], dx
test ebx, ebx
je 0x1007c2ea
mov edi, dword [edi + 4]
push edi
push ebx
mov ecx, esi
call sym.ACE.dll_public:_int___thiscall_ACE_SOCK_Dgram::set_nic_char_const___int_
test eax, eax
jne 0x1007c1a9
mov eax, ebx
lea edx, [eax + 1]
jmp 0x1007c2c0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1007c2c0
sub eax, edx
inc eax
push eax
call fcn.1009acf2
add esp, 4
mov dword [esi + 0x24], eax
mov ecx, ebx
mov edx, eax
lea ebx, [ebx]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x1007c2e0
xor eax, 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.1009acfd
mov esp, ebp
pop ebp
ret 0xc