Function at 0x403f50
Capabilities:
Get hostname
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push 0x40daf8
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x403f7e
mov dword [0x40eb40], 0
jmp 0x40415e
push str.Local
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x403fa8
push 0x7f000001
call sub.WSOCK32.dll_htonl
mov dword [0x40eb40], eax
jmp 0x40415e
push 0x40daec
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x40406e
mov dword [0x40eb40], 0xffffffff
push 0x200
lea eax, [ebp - 0x208]
push eax
call sub.WSOCK32.dll_gethostname
lea ecx, [ebp - 0x208]
push ecx
call sub.WSOCK32.dll_gethostbyname
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x404046
mov dword [ebp - 8], 0
jmp 0x404004
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 8]
cmp dword [ecx + edx*4], 0
je 0x404046
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ecx + edx*4]
mov ecx, dword [eax]
push ecx
call fcn.00407640
add esp, 4
cmp eax, 1
jne 0x404044
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + ecx*4]
mov eax, dword [edx]
mov dword [0x40eb40], eax
jmp 0x404046
jmp 0x403ffb
cmp dword [0x40eb40], 0xffffffff
jne 0x404069
push 0
mov ecx, dword [ebp + 0xc]
push ecx
push str.BindInterface_directive_could_not_find_a_LAN_interface.
call fcn.004034d0
add esp, 0xc
xor eax, eax
jmp 0x404163
jmp 0x40415e
push 0x40dab0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x40412e
mov dword [0x40eb40], 0xffffffff
push 0x200
lea eax, [ebp - 0x208]
push eax
call sub.WSOCK32.dll_gethostname
lea ecx, [ebp - 0x208]
push ecx
call sub.WSOCK32.dll_gethostbyname
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40410c
mov dword [ebp - 8], 0
jmp 0x4040ca
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 8]
cmp dword [ecx + edx*4], 0
je 0x40410c
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ecx + edx*4]
mov ecx, dword [eax]
push ecx
call fcn.00407640
add esp, 4
cmp eax, 2
jne 0x40410a
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + ecx*4]
mov eax, dword [edx]
mov dword [0x40eb40], eax
jmp 0x40410c
jmp 0x4040c1
cmp dword [0x40eb40], 0xffffffff
jne 0x40412c
push 0
mov ecx, dword [ebp + 0xc]
push ecx
push str.BindInterface_directive_could_not_find_a_WAN_interface.
call fcn.004034d0
add esp, 0xc
xor eax, eax
jmp 0x404163
jmp 0x40415e
mov edx, dword [ebp + 8]
push edx
call sub.WSOCK32.dll_inet_addr
mov dword [0x40eb40], eax
cmp dword [0x40eb40], 0xffffffff
jne 0x40415e
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push str.BindInterface_directive_does_not_recognize_argument___s_.
call fcn.004034d0
add esp, 0xc
xor eax, eax
jmp 0x404163
mov eax, 1
mov esp, ebp
pop ebp
ret