Function at 0x413e30
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432e5e
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 0x4128b0
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 0x413ee2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call fcn.00404cb0
push eax
push esi
push str.New_connection_denied___d_:__s__n
call fcn.0041c026
add esp, 0x10
xor al, al
jmp 0x41425e
mov eax, dword [ebp - 0x110]
cmp eax, ebx
jne 0x413f32
mov ecx, dword [ebp - 0xec]
push ebx
push ecx
push esi
mov ecx, edi
call fcn.0040fd50
mov dword [ebp - 0xf0], eax
cmp eax, ebx
jne 0x413f38
push str.New_connection_denied__n
call fcn.0041c026
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 0x41425e
mov dword [ebp - 0xf0], eax
mov ax, word [ebp - 0xe4]
cmp ax, 2
jne 0x413f4c
push str._acceptConnection_AF_INET__n
jmp 0x413f57
cmp ax, 0x17
jne 0x413f5f
push str._acceptConnection_AF_INET6__n
call fcn.0041c026
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.00404fc0
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.004014d0
push eax
push ebx
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00404d30
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00401fb0
cmp dword [ebp - 0x50], 0x10
mov byte [ebp - 4], bl
jb 0x413fd4
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.0041b244
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.0041bdc4
add esp, 4
cmp eax, ebx
je 0x414028
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 0x41402a
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.0041c026
mov ecx, dword [ebp - 0xf8]
add ecx, 0xe0
add esp, 8
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x104], ebx
call fcn.004199b0
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.00401e40
mov eax, dword [ebp - 0xf0]
mov byte [ebp - 4], 3
cmp byte [eax + 0x20], bl
je 0x4140a8
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00401d50
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.00401d50
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.00401d50
mov ecx, dword [ebp - 0xf8]
push esi
mov byte [ebp - 4], 3
call fcn.00408400
cmp al, bl
jne 0x4141d0
cmp dword [ebp - 0x18], 0x10
jb 0x414133
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xec], eax
jmp 0x41413c
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.0041c026
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.0041b244
mov esi, 0x10
add esp, 4
cmp dword [ebp - 0x34], esi
jb 0x414199
mov edx, dword [ebp - 0x48]
push edx
call fcn.0041b244
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 0x4141b8
call fcn.004199c0
cmp dword [ebp - 0x18], esi
jb 0x4141c9
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0041b244
add esp, 4
xor al, al
jmp 0x41425e
lea ecx, [ebp - 0x100]
push ecx
mov ecx, dword [ebp - 0xf8]
add ecx, 0xcc
call fcn.00411c90
mov dword [eax], edi
cmp dword [ebp - 0x18], 0x10
mov edi, dword [ebp - 0x2c]
jae 0x4141f6
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.0041c026
mov esi, 0x10
add esp, 0x10
cmp dword [ebp - 0x34], esi
jb 0x41422c
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.0041b244
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 0x41424b
call fcn.004199c0
cmp dword [ebp - 0x18], esi
jb 0x41425c
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0041b244
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.0041bdb5
mov esp, ebp
pop ebp
ret 8