Function at 0x408b0f
Capabilities:
Get hostname
Resolve dns
Set socket configuration
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x84]
sub esp, 0x104
mov eax, dword [0x446b80]
xor eax, ebp
mov dword [ebp + 0x80], eax
mov eax, dword [ebp + 0x8c]
push ebx
push edi
push 0x41e328
push eax
xor ebx, ebx
call fcn.004020a3
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x408b5a
push str._n_aBETAREAD:_System_File_konnte_nicht_geoeffnet_werden.
call fcn.00409ad7
pop ecx
or eax, 0xffffffff
jmp 0x408d4f
push esi
jmp 0x408d2b
lea eax, [ebp - 0x80]
push eax
call fcn.0040a180
pop ecx
test eax, eax
je 0x408b9c
lea eax, [ebp - 0x80]
push eax
call fcn.0040a180
pop ecx
lea ecx, [ebp - 0x80]
cmp byte [eax + ecx - 1], 0xa
jne 0x408b9c
mov eax, ecx
push eax
call fcn.0040a180
dec eax
pop ecx
cmp eax, 0x100
jae 0x408d72
mov byte [ebp + eax - 0x80], 0
mov al, byte [ebp - 0x80]
inc ebx
test al, al
je 0x408d2b
cmp al, 0xd
je 0x408d2b
cmp al, 0x23
je 0x408d2b
lea eax, [ebp - 0x80]
push eax
call fcn.0040f55e
cmp dword [0x460ca0], 0
pop ecx
jne 0x408c57
movsx eax, byte [ebp - 0x80]
push eax
call fcn.0040f851
test eax, eax
lea eax, [ebp - 0x80]
pop ecx
je 0x408c05
push eax
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x408d77
mov eax, dword [eax + 0xc]
push 4
push dword [eax]
push 0x460ca0
call fcn.0040ba80
jmp 0x408d28
push 7
push str.0.0.0.0
push eax
call fcn.0040a210
add esp, 0xc
test eax, eax
lea eax, [ebp - 0x80]
jne 0x408c31
push 0x14
push eax
call sub.WSOCK32.dll_gethostname
test eax, eax
jne 0x408d66
lea eax, [ebp - 0x80]
jmp 0x408be1
push eax
call sub.WSOCK32.dll_inet_addr
mov dword [0x460ca0], eax
cmp eax, 0xffffffff
jne 0x408d2b
push str._n_aBETAREAD:_Server_Internet_Adresse_nicht_gueltig.
call fcn.00409ad7
or eax, 0xffffffff
jmp 0x408d4d
cmp dword [0x460c9c], 0
jne 0x408c83
push 0x460c9c
push 0x4215c8
push eax
call fcn.0040f4cd
add esp, 0xc
cmp eax, 1
je 0x408d2b
push str._n_aBETAREAD:_Beta_System_ID_nicht_gueltig.
jmp 0x408c4a
push 0x4215cc
push eax
call fcn.0040f5ae
pop ecx
pop ecx
test eax, eax
je 0x408d2b
xor esi, esi
inc esi
push esi
push eax
imul eax, dword [0x460c98], 0xd8
add eax, dword [0x460c8c]
push eax
call fcn.0040876f
add esp, 0xc
test eax, eax
jne 0x408d0d
imul eax, dword [0x460c98], 0xd8
push 0x4215cc
add eax, dword [0x460c8c]
xor ecx, ecx
push ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
jmp 0x408d00
inc esi
push esi
push eax
imul eax, dword [0x460c98], 0xd8
add eax, dword [0x460c8c]
push eax
call fcn.0040876f
add esp, 0xc
test eax, eax
jne 0x408d10
push 0x4215cc
push eax
call fcn.0040f5ae
pop ecx
pop ecx
test eax, eax
jne 0x408cda
jmp 0x408d14
xor esi, esi
inc esi
test esi, esi
jne 0x408d1c
inc dword [0x460c98]
jmp 0x408d2b
push esi
push ebx
push str._nFehler:_Zeile:__d__Parameter:__d
call fcn.00409ad7
add esp, 0xc
push edi
lea eax, [ebp - 0x80]
push 0xff
push eax
call fcn.00409767
add esp, 0xc
test eax, eax
jne 0x408b60
push edi
call fcn.004096f0
xor eax, eax
pop ecx
pop esi
mov ecx, dword [ebp + 0x80]
pop edi
xor ecx, ebp
pop ebx
call fcn.0040a6e0
lea esp, [ebp + 0x84]
pop ebp
ret
push str.FEHLER_bei_Bestimmung_Hostname_____n
call fcn.00409ad7
jmp 0x408d81
call fcn.004092b8
push str.Servername_nicht_in__etc_hosts_n
call fcn.0040f3f8
pop ecx
push 0
call fcn.0040a627
int3