Function at 0x41aad0
Capabilities:
Resolve dns
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x30
mov esi, dword [ebp + 8]
mov dword [esp + 8], 0x2d5
mov dword [esp + 4], 0x41a9f1
mov dword [esp], 0x418370
call sym._updatecontext_f
mov eax, 0x258
test esi, esi
mov dword [0x43140c], eax
mov eax, 1
je 0x41ac08
inc dword [0x4313c4]
mov eax, dword [0x4314b4]
mov dword [0x4313e4], eax
mov eax, dword [0x4313b8]
mov dword [esp], eax
call sym._mydelete2
xor eax, eax
mov dword [0x4313b8], eax
mov eax, dword [0x4313bc]
mov dword [esp], eax
call sym._mydelete2
mov dword [esp + 0x10], 0x2e1
xor eax, eax
mov dword [0x4313bc], eax
mov dword [esp + 0xc], 0x418370
mov dword [esp + 8], 0x41a9f1
mov dword [esp + 4], 1
mov dword [esp], esi
call sym._getpart2
mov dword [0x4313b8], eax
mov dword [esp + 0x10], 0x2e2
mov dword [esp + 0xc], 0x418370
mov dword [esp + 8], 0x41a9f1
mov dword [esp + 4], 2
mov dword [esp], esi
call sym._getpart2
test eax, eax
mov ebx, eax
je 0x41aefa
mov dword [esp], eax
call sym._atoi
mov word [0x4313c0], ax
mov dword [esp], ebx
call sym._mydelete2
mov dword [esp + 0xc], 0x2ed
mov dword [esp + 8], 0x418370
mov dword [esp + 4], 0x41a9f1
mov dword [esp], 0x200
call sym._mycalloc2
mov ebx, eax
mov eax, dword [0x431210]
cmp eax, 2
je 0x41aeab
cmp eax, 2
ja 0x41ae4a
dec eax
je 0x41ac0f
mov dword [esp], ebx
call sym._mydelete2
mov eax, 1
add esp, 0x30
pop ebx
pop esi
pop ebp
ret
mov dword [esp + 8], 0x41a9fc
mov dword [esp + 4], 0x1ff
mov dword [esp], ebx
call sym._snprintf
mov eax, dword [0x4313b8]
mov dword [0x4313cc], eax
movzx eax, word [0x4313c0]
mov word [0x4313d0], ax
mov edx, dword [0x431260]
test edx, edx
je 0x41ae19
mov dword [esp + 0x24], ebx
movzx eax, dl
mov dword [esp + 0x20], eax
movzx eax, dh
shr edx, 0x10
mov dword [esp + 0x1c], eax
movzx eax, dl
shr edx, 8
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0x41aa10
mov dword [esp + 8], 0
mov dword [esp + 4], 7
mov dword [esp], 0
call sym._ioutput
mov dword [esp], ebx
call sym._mydelete2
mov esi, dword [0x4313dc]
test esi, esi
jne 0x41addb
mov dword [esp + 0xc], 0x4313d4
mov dword [esp + 8], 0
mov dword [esp + 4], 2
mov dword [esp], 1
call sym._socketpair
test eax, eax
js 0x41adbe
call sym._fork
test eax, eax
js 0x41ad92
test eax, eax
jne 0x41ad67
mov ebx, 3
nop
cmp ebx, dword [0x4313d8]
je 0x41ad00
mov dword [esp], ebx
call sym._close
inc ebx
cmp ebx, 0xfe
jle 0x41acf0
mov eax, dword [0x4313cc]
mov dword [esp], eax
call sym._gethostbyname
test eax, eax
je 0x41ad5e
mov dword [esp + 8], 4
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov dword [esp + 4], eax
mov eax, dword [0x4313d8]
mov dword [esp], eax
call sym._write
cmp eax, 4
je 0x41ad49
mov dword [esp], 0xb
call sym._exit
mov dword [esp], 0x3c
call sym._sleep
mov dword [esp], 0
jmp 0x41ad44
mov dword [esp], 0xa
jmp 0x41ad44
mov dword [0x4313dc], eax
mov eax, dword [0x4313d8]
mov dword [esp], eax
call sym._close
mov eax, 1
xor edx, edx
mov dword [0x4313e0], eax
xor eax, eax
mov dword [0x4313d8], edx
jmp 0x41ac08
call sym.___errno
mov eax, dword [eax]
mov dword [esp], eax
call sym._strerror
mov dword [esp + 8], eax
mov dword [esp + 4], 0x41aa43
mov dword [esp], 1
call sym._outerror
jmp 0x41ac03
call sym.___errno
mov eax, dword [eax]
mov dword [esp], eax
call sym._strerror
mov dword [esp + 8], eax
mov dword [esp + 4], 0x41aa4e
jmp 0x41adad
mov eax, dword [0x4313d4]
xor ebx, ebx
mov dword [esp], eax
call sym._close
mov ecx, dword [0x4313d4]
mov eax, 0xfffffffe
mov dword [0x4313d4], ebx
mov edx, ecx
and ecx, 0x1f
rol eax, cl
xor ecx, ecx
shr edx, 5
and dword [edx*4 + 0x4314c0], eax
mov dword [0x4313dc], ecx
jmp 0x41acad
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0x41aa5f
mov dword [esp + 8], 0
mov dword [esp + 4], 7
mov dword [esp], 0
call sym._ioutput
jmp 0x41ac97
cmp eax, 3
je 0x41ae9a
cmp eax, 4
jne 0x41abfb
movzx eax, word [0x431218]
mov dword [esp + 8], 0x41aa7d
mov dword [esp + 0x10], eax
mov eax, dword [0x431214]
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x1ff
mov dword [esp], ebx
call sym._snprintf
mov eax, dword [0x431214]
mov dword [0x4313cc], eax
movzx eax, word [0x431218]
jmp 0x41ac38
movzx eax, word [0x431218]
mov dword [esp + 8], 0x41aa90
jmp 0x41ae67
mov eax, dword [0x431220]
test eax, eax
je 0x41aee6
mov dword [esp + 0x14], eax
movzx eax, word [0x431218]
mov dword [esp + 8], 0x41aaa4
mov dword [esp + 4], 0x1ff
mov dword [esp], ebx
mov dword [esp + 0x10], eax
mov eax, dword [0x431214]
mov dword [esp + 0xc], eax
call sym._snprintf
jmp 0x41ae84
movzx eax, word [0x431218]
mov dword [esp + 8], 0x41aabc
jmp 0x41ae67
mov eax, 0x1a0b
mov word [0x4313c0], ax
jmp 0x41abbb