Function at 0x413120
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432d3f
mov eax, dword fs:[0]
push eax
sub esp, 0x118
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 + 0x14]
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x50], ecx
mov ecx, 1
xor ebx, ebx
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x30], eax
mov dword [eax], ecx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
xor eax, eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x6c], 6
mov dword [ebp - 0x78], 5
mov dword [ebp - 0x120], 0x435bbc
mov dword [ebp - 0x110], 0x435bb4
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 2
mov dword [ebp - 0x34], 2
mov dword [ebp - 0xc0], 0x43580c
mov dword [ebp - 0x118], esi
mov dword [ebp - 0x114], esi
call fcn.0040c770
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x88], ecx
push 0x20
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0x84], esi
call fcn.0040ea30
mov byte [ebp - 0x80], al
cmp dword [ebp - 0x88], esi
jne 0x41322b
mov eax, dword [ebp - 0xb4]
or eax, 4
push esi
push eax
lea ecx, [ebp - 0xc0]
call fcn.0040c640
mov edx, dword [ebp - 0x110]
mov eax, dword [edx + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov ecx, dword [ebp - 0x120]
mov edx, dword [ecx + 4]
mov dword [ebp + edx - 0x120], 0x435810
mov eax, dword [ebp - 0x120]
mov ecx, dword [eax + 4]
mov dword [ebp + ecx - 0x120], 0x4358e4
lea ecx, [ebp - 0x108]
mov dword [ebp - 4], 7
call fcn.0040d1a0
mov dword [ebp - 0x108], 0x435864
mov dword [ebp - 0xcc], esi
mov dword [ebp - 0xc8], esi
mov edx, dword [ebp + 0x10]
push edx
lea ecx, [ebp - 0x110]
mov byte [ebp - 4], 9
call fcn.00410450
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x120]
call fcn.00412b60
cmp dword [eax + 0x14], 0x10
jb 0x4132b9
mov eax, dword [eax]
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x78]
push edx
push eax
push esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
cmp dword [ebp - 0x18], 0x10
mov dword [ebp - 0x3c], eax
jb 0x4132de
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0041b244
add esp, 4
cmp dword [ebp - 0x3c], esi
je 0x41333e
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
lea edx, [ebp - 0x4c]
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
cmp edi, edx
je 0x41330d
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0x34], 3
mov byte [ebp - 4], 1
call fcn.0040d7b0
lea eax, [ebp - 0xc0]
push eax
mov dword [ebp - 0xc0], vtable.std::ios_base.0
call fcn.0041a332
jmp 0x4136b5
mov edi, dword [ebp - 0x38]
cmp edi, esi
je 0x413506
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x50]
push edi
call fcn.0040bab0
mov esi, eax
mov dword [ebp - 0x54], esi
cmp esi, 0xffffffff
je 0x4133e1
mov edx, dword [edi + 0x10]
mov eax, dword [edi + 0x18]
push edx
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x413425
cmp byte [ebp + 0x18], 0
je 0x4133a7
push 4
lea ecx, [ebp - 0x3c]
push ecx
push 0x3002
push 0xffff
push esi
mov dword [ebp - 0x3c], 1
call ebx
cmp eax, 0xffffffff
je 0x41345c
push 5
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x41348c
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x4c]
mov dword [edx], 0
call fcn.00410640
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x41334f
mov ebx, dword [ebp - 0x4c]
jmp 0x413504
mov ecx, dword [edi + 0x18]
push ecx
lea edx, [ebp - 0x2c]
push edx
call fcn.00404fc0
mov esi, 0x10
add esp, 8
cmp dword [eax + 0x14], esi
jb 0x4133fd
mov eax, dword [eax]
push eax
push str.Failed_to_create_a_server_socket_for_addr_s_n
call fcn.0041c026
add esp, 8
cmp dword [ebp - 0x18], esi
jb 0x4134ad
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0041b244
add esp, 4
jmp 0x4134ad
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Error__d_in_binding_server_socket.
call fcn.0041c026
add esp, 8
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]
mov ecx, dword [ebp - 0x30]
mov dword [ecx], 3
jmp 0x4134ad
push str.Error:_Cant_bind_socket_using_exclusive_address_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]
mov edx, dword [ebp - 0x30]
mov dword [edx], 6
jmp 0x4134ad
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]
mov eax, dword [ebp - 0x30]
mov dword [eax], 5
mov ecx, dword [ebp - 0x48]
mov ebx, dword [ebp - 0x4c]
mov edi, ecx
sub edi, ebx
xor eax, eax
sar edi, 2
mov dword [ebp - 0x34], eax
test edi, edi
je 0x4134f1
mov esi, dword [ebx + eax*4]
cmp esi, 0xffffffff
je 0x4134e6
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]
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp eax, edi
jb 0x4134c3
mov ecx, dword [ebp - 0x48]
cmp ebx, ecx
je 0x413504
push 0
push ecx
push ebx
call fcn.0041b670
add esp, 0xc
mov dword [ebp - 0x48], ebx
xor esi, esi
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, dword [ebp - 0x48]
mov edx, eax
sub edx, ebx
sar edx, 2
test edx, edx
je 0x413523
mov ecx, dword [ebp - 0x30]
mov dword [ecx], esi
mov edi, dword [ebp - 0x58]
lea edx, [ebp - 0x4c]
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
cmp edi, edx
je 0x41354b
mov dword [edi], ebx
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x44]
xor ebx, ebx
mov dword [edi + 8], eax
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
mov edx, dword [ebp - 0x120]
mov eax, dword [edx + 4]
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0x34], 3
mov dword [ebp - 0x3c], ecx
mov dword [ebp + eax - 0x120], 0x4358e4
test byte [ebp - 0xc8], 1
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x108], 0x435864
je 0x41359c
mov edx, dword [ebp - 0xf8]
mov eax, dword [edx]
push eax
call fcn.0041b244
add esp, 4
mov eax, dword [ebp - 0xf8]
mov dword [eax], esi
mov ecx, dword [ebp - 0xe8]
mov dword [ecx], esi
mov edx, dword [ebp - 0xd8]
mov dword [edx], esi
mov eax, dword [ebp - 0xf4]
mov dword [eax], esi
mov ecx, dword [ebp - 0xe4]
mov dword [ecx], esi
mov edx, dword [ebp - 0xd4]
mov dword [edx], esi
and dword [ebp - 0xc8], 0xfffffffe
mov dword [ebp - 0xcc], esi
mov dword [ebp - method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xd0]
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x50], eax
cmp eax, esi
je 0x413643
mov edi, dword [eax]
cmp edi, esi
je 0x413634
push esi
lea ecx, [ebp - 0x54]
call fcn.00419ddf
mov eax, dword [edi + 4]
cmp eax, esi
jbe 0x413613
cmp eax, 0xffffffff
jae 0x413613
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
lea ecx, [ebp - 0x54]
not esi
call fcn.00419e07
and esi, edi
je 0x413632
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
xor esi, esi
mov eax, dword [ebp - 0x50]
push eax
call fcn.0041b244
mov edi, dword [ebp - 0x58]
add esp, 4
lea ecx, [ebp - 0x104]
mov byte [ebp - 4], 0xa
call fcn.0041a49c
mov ecx, dword [ebp - 0x120]
mov edx, dword [ecx + 4]
mov dword [ebp + edx - 0x120], 0x435810
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax + 4]
mov dword [ebp + ecx - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov edx, dword [ebp - 0x120]
mov eax, dword [edx + 4]
lea ecx, [ebp - 0xc0]
mov dword [ebp + eax - 0x120], 0x43580c
push ecx
mov byte [ebp - 4], 1
mov dword [ebp - 0xc0], vtable.std::ios_base.0
call fcn.0041a332
add esp, 4
cmp ebx, esi
je 0x4136b8
push ebx
call fcn.0041b244
add esp, 4
mov eax, edi
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 0x14