Function at 0x40cff0
Capabilities:
Resolve dns
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x20
mov esi, dword [ebp + 8]
mov dword [esp + 8], 0xd44
mov dword [esp + 4], 0x40cf2d
mov dword [esp], 0x402443
call sym._updatecontext_f
mov eax, dword [esi + 0xc]
mov ecx, 0x258
mov dword [0x438c4c], ecx
test eax, eax
je 0x40d02e
cmp byte [eax], 0
jne 0x40d045
mov dword [esp + 4], 0x40cf50
mov dword [esp], esi
call sym._u_respond
add esp, 0x20
pop ebx
pop esi
pop ebp
ret
mov eax, dword [0x438c20]
cmp eax, 3
je 0x40d31f
cmp eax, 2
je 0x40d2f4
mov dword [esp], 0x438c40
call sym._irlist_delete_all
inc dword [0x438c04]
xor edx, edx
mov eax, dword [0x438d08]
mov dword [0x438c20], edx
mov dword [0x438c24], eax
mov eax, dword [esi + 0x10]
test eax, eax
je 0x40d0cf
mov dword [esp + 0x10], 0xd68
mov dword [esp + 0xc], 0x402443
mov dword [esp + 8], 0x40cf2d
mov dword [esp + 4], 1
mov eax, dword [esi + 0x18]
mov dword [esp], eax
call sym._getpart2
mov dword [0x438bf4], eax
mov eax, dword [esi + 0x10]
mov dword [esp], eax
call sym._atoi
mov word [0x438bf8], ax
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x40d10a
mov dword [esp + 0x10], 0xd6d
mov dword [esp + 0xc], 0x402443
mov dword [esp + 8], 0x40cf2d
mov dword [esp + 4], 1
mov eax, dword [esi + 0x18]
mov dword [esp], eax
call sym._getpart2
mov dword [0x438bf4], eax
mov eax, 0x1a0b
mov word [0x438bf8], ax
inc dword [0x438c54]
xor eax, eax
mov edx, dword [0x438bf4]
mov dword [0x438c08], eax
movzx eax, word [0x438bf8]
mov dword [0x438c0c], edx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0x40cf90
mov word [0x438c10], ax
mov dword [esp + 0x14], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 4
mov dword [esp], 0
call sym._ioutput
mov eax, dword [0x438c1c]
test eax, eax
jne 0x40d2b7
mov dword [esp + 0xc], 0x438c14
mov dword [esp + 8], 0
mov dword [esp + 4], 2
mov dword [esp], 1
call sym._socketpair
test eax, eax
js 0x40d28b
call sym._fork
test eax, eax
mov ebx, eax
js 0x40d262
test eax, eax
jne 0x40d237
mov ebx, 3
jmp 0x40d1c0
cmp ebx, dword [0x438c18]
je 0x40d1d0
mov dword [esp], ebx
call sym._close
inc ebx
cmp ebx, 0xfe
jle 0x40d1c0
mov eax, dword [0x438c0c]
mov dword [esp], eax
call sym._gethostbyname
test eax, eax
je 0x40d22e
mov dword [esp + 8], 4
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov dword [esp + 4], eax
mov eax, dword [0x438c18]
mov dword [esp], eax
call sym._write
cmp eax, 4
je 0x40d219
mov dword [esp], 0xb
call sym._exit
mov dword [esp], 0x3c
call sym._sleep
mov dword [esp], 0
jmp 0x40d214
mov dword [esp], 0xa
jmp 0x40d214
mov dword [0x438c1c], ebx
mov eax, dword [0x438c18]
xor ebx, ebx
mov dword [esp], eax
call sym._close
mov dword [0x438c18], ebx
mov ecx, 1
mov dword [0x438c20], ecx
jmp 0x40d03e
call sym.___errno
mov eax, dword [eax]
mov dword [esp], eax
call sym._strerror
mov dword [esp + 8], eax
mov dword [esp + 4], 0x40cfaf
mov dword [esp], 1
call sym._outerror
jmp 0x40d237
call sym.___errno
mov eax, dword [eax]
mov dword [esp], eax
call sym._strerror
mov dword [esp + 8], eax
mov dword [esp + 4], 0x40cfba
mov dword [esp], 1
call sym._outerror
jmp 0x40d195
mov eax, dword [0x438c14]
xor esi, esi
mov dword [esp], eax
call sym._close
mov dword [0x438c1c], esi
mov ecx, dword [0x438c14]
mov eax, 0xfffffffe
mov edx, ecx
and ecx, 0x1f
shr edx, 5
rol eax, cl
and dword [edx*4 + 0x438d18], eax
xor eax, eax
mov dword [0x438c14], eax
jmp 0x40d169
mov edx, dword [0x438c50]
mov eax, 0xfffffffe
mov ecx, edx
mov dword [esp], edx
mov ebx, edx
and ecx, 0x1f
shr ebx, 5
rol eax, cl
and dword [ebx*4 + 0x438d18], eax
call sym._close
jmp 0x40d05c
mov dword [esp + 4], 0x4019fd
mov dword [esp], 1
call sym._writeserver
mov dword [esp + 0xc], 0x40cfcb
mov dword [esp + 8], 0x1f
mov dword [esp + 4], 4
mov dword [esp], 0
call sym._ioutput
mov dword [esp + 4], 2
mov edx, dword [0x438c50]
mov eax, 0xfffffffe
mov dword [esp], edx
mov ecx, edx
mov ebx, edx
and ecx, 0x1f
shr ebx, 5
rol eax, cl
and dword [ebx*4 + 0x438d18], eax
call sym._shutdown
mov eax, dword [0x438c50]
mov dword [esp], eax
call sym._close
mov eax, dword [0x438c20]
jmp 0x40d053