Function at 0x413e40
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432ebe
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x43e460]
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 eax, dword [ebp + 0xc]
mov dword [ebp - 0xec], eax
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x118]
push eax
mov eax, dword [ebp + 8]
mov edi, ecx
push 0x412840
lea ecx, [ebp - 0x10c]
push ecx
lea edx, [ebp - 0xe4]
push edx
xor ebx, ebx
push eax
mov dword [ebp - 0xf8], edi
mov dword [ebp - 0x10c], 0x80
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x110], ebx
call dword [sym.imp.WS2_32.dll_WSAAccept]
mov esi, eax
mov dword [ebp - 0x100], esi
cmp esi, 0xffffffff
jne 0x413ef2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call fcn.00404a90
push eax
push esi
push str.New_connection_denied___d_:__s__n
call fcn.0041c077
add esp, 0x10
xor al, al
jmp 0x41426e
mov eax, dword [ebp - 0x110]
cmp eax, ebx
jne 0x413f42
mov ecx, dword [ebp - 0xec]
push ebx
push ecx
push esi
mov ecx, edi
call fcn.0040fcf0
mov dword [ebp - 0xf0], eax
cmp eax, ebx
jne 0x413f48
push str.New_connection_denied__n
call fcn.0041c077
add esp, 4
push 2
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
jmp 0x41426e
mov dword [ebp - 0xf0], eax
mov ax, word [ebp - 0xe4]
cmp ax, 2
jne 0x413f5c
push str._acceptConnection_AF_INET__n
jmp 0x413f67
cmp ax, 0x17
jne 0x413f6f
push str._acceptConnection_AF_INET6__n
call fcn.0041c077
add esp, 4
movzx edi, word [ebp - 0xe2]
lea eax, [ebp - 0xe4]
push eax
lea ecx, [ebp - 0x2c]
xor edx, edx
push ecx
mov dword [ebp - 0xf4], edi
mov word [ebp - 0xe2], dx
call fcn.00404da0
add esp, 8
push 1
push ebx
lea edx, [ebp - 0xe8]
push edx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
mov byte [ebp - 0xe8], 0x25
call fcn.004014e0
push eax
push ebx
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00404b10
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00401fc0
cmp dword [ebp - 0x50], 0x10
mov byte [ebp - 4], bl
jb 0x413fe4
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.0041b28a
add esp, 4
lea edx, [ebp - 0xfc]
push edx
push 0x8004667e
push esi
mov word [ebp - 0xe2], di
mov dword [ebp - 0xfc], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push 0x1c
call fcn.0041be14
add esp, 4
cmp eax, ebx
je 0x414038
mov ecx, dword [ebp - 0xf0]
mov dword [eax], ebx
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], 0xfff
mov dword [eax + 0x14], ebx
mov dword [eax + 0x18], ecx
mov edi, eax
jmp 0x41403a
xor edi, edi
push esi
push str.LMS_asked_so_created_a_new_channel_on_socket:__d_n
mov dword [edi + 0x14], ebx
call fcn.0041c077
mov ecx, dword [ebp - 0xf8]
add ecx, 0xe0
add esp, 8
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x104], ebx
call fcn.004199f0
mov eax, dword [edi + 0x18]
inc dword [eax + 0x3c]
push 9
mov edx, 2
push str.127.0.0.1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
mov word [ebp - 0xe4], dx
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
call fcn.00401e50
mov eax, dword [ebp - 0xf0]
mov byte [ebp - 4], 3
cmp byte [eax + 0x20], bl
je 0x4140b8
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00401d60
mov edx, dword [ebp - 0xf4]
push edx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0xfc], esp
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x2c]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push edx
mov byte [ecx], bl
call fcn.00401d60
mov eax, dword [ebp - 0xec]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0xec], esp
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x48]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push edx
mov byte [ebp - 4], 4
mov byte [ecx], bl
call fcn.00401d60
mov ecx, dword [ebp - 0xf8]
push esi
mov byte [ebp - 4], 3
call fcn.00408460
cmp al, bl
jne 0x4141e0
cmp dword [ebp - 0x18], 0x10
jb 0x414143
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xec], eax
jmp 0x41414c
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0xec], ecx
mov edx, dword [ebp - 0xf4]
push edx
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [ebp - 0xec]
movzx eax, ax
push eax
push ecx
push esi
push str.ERROR:_failed_to_send_channel_open_request_to_LME._Sender__d._addr:_s_port:_d__n
call fcn.0041c077
add esp, 0x10
push 2
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
push edi
call fcn.0041b28a
mov esi, 0x10
add esp, 4
cmp dword [ebp - 0x34], esi
jb 0x4141a9
mov edx, dword [ebp - 0x48]
push edx
call fcn.0041b28a
add esp, 4
mov ecx, dword [ebp - 0x108]
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
mov byte [ebp - 4], bl
cmp ecx, ebx
je 0x4141c8
call fcn.00419a00
cmp dword [ebp - 0x18], esi
jb 0x4141d9
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0041b28a
add esp, 4
xor al, al
jmp 0x41426e
lea ecx, [ebp - 0x100]
push ecx
mov ecx, dword [ebp - 0xf8]
add ecx, 0xcc
call fcn.00412940
mov dword [eax], edi
cmp dword [ebp - 0x18], 0x10
mov edi, dword [ebp - 0x2c]
jae 0x414206
lea edi, [ebp - 0x2c]
mov edx, dword [ebp - 0xf4]
push edx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
push eax
push edi
push esi
push str.Send_channel_open_request_to_LME._Sender__d._addr:_s_port:_d__n
call fcn.0041c077
mov esi, 0x10
add esp, 0x10
cmp dword [ebp - 0x34], esi
jb 0x41423c
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.0041b28a
add esp, 4
mov ecx, dword [ebp - 0x108]
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
mov byte [ebp - 4], bl
cmp ecx, ebx
je 0x41425b
call fcn.00419a00
cmp dword [ebp - 0x18], esi
jb 0x41426c
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0041b28a
add esp, 4
mov al, 1
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.0041be05
mov esp, ebp
pop ebp
ret 8