Function at 0x41f990
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov dword [esp], 0x200
mov dword [esp + 4], 0x41f6ea
mov dword [esp + 8], 0x41a25a
mov dword [esp + 0xc], 0x5de
call sym._mycalloc2
mov dword [ebp - 0x10], eax
mov dword [esp], 0x41a25a
mov dword [esp + 4], 0x41f6ea
mov dword [esp + 8], 0x5e0
call sym._updatecontext_f
mov eax, dword [0x431ae4]
test eax, eax
je 0x41feb0
mov dword [esp], 2
mov dword [esp + 4], sym._shutdowniroffer
call sym._signal
mov dword [esp], 0xf
mov dword [esp + 4], sym._shutdowniroffer
call sym._signal
mov dword [esp], 0
call sym._xdccsave
call sym._write_ignorefile
mov eax, dword [0x431c0c]
test eax, eax
jne 0x41fe86
cmp dword [0x4315ac], 2
jne 0x41fdfa
mov dword [esp], 0
xor ebx, ebx
mov dword [esp + 4], 1
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0x41f710
call sym._ioutput
mov eax, 0x4315b0
mov esi, esi
lea edi, [edi]
xor esi, esi
mov dword [eax + ebx*4 + 4], esi
inc ebx
cmp ebx, 0x12b
jle 0x41fa70
xor ebx, ebx
mov edi, 0x431be4
lea esi, [esi]
lea edi, [edi]
mov eax, dword [ebx*4 + 0x433918]
test eax, eax
jne 0x41fd36
inc ebx
cmp ebx, 0x63
jle 0x41fa90
xor ebx, ebx
mov eax, dword [ebx*4 + 0x433aa8]
test eax, eax
jne 0x41fc90
inc ebx
cmp ebx, 9
jle 0x41faa7
mov dword [esp], 0x3c
mov dword [esp + 4], 0x41f6ea
mov dword [esp + 8], 0x41a25a
mov dword [esp + 0xc], 0x626
call sym._mycalloc2
mov edi, dword [0x4311fc]
mov esi, eax
mov dword [esp], 0x41a25a
mov dword [esp + 4], 0x41f748
mov dword [esp + 8], 0x5b8
call sym._updatecontext_f
mov ecx, 0x88888889
mov eax, dword [0x431bd8]
mov dword [esp], esi
mov dword [esp + 4], 0x3a
sub eax, edi
mov dword [ebp - 0x14], eax
imul ecx
mov eax, dword [ebp - 0x14]
mov dword [esp + 8], 0x41f752
lea edi, [eax + edx]
mov edx, 0xb60b60b7
sar eax, 0x1f
sar edi, 5
sub edi, eax
mov eax, edx
imul edi
mov eax, edi
mov ebx, edx
mov edx, edi
add ebx, edi
sar edx, 0x1f
mov dword [ebp - 0x14], edx
sar ebx, 0xa
sub ebx, edx
imul ecx
mov eax, dword [ebp - 0x14]
mov dword [esp + 0xc], ebx
mov ecx, edx
lea edx, [ebx + ebx*2]
add ecx, edi
sar ecx, 5
sub ecx, eax
shl edx, 3
sub ecx, edx
mov edx, edi
mov dword [esp + 0x10], ecx
mov eax, ecx
mov edi, ebx
shl eax, 4
imul edi, edi, 0x5a0
sub eax, ecx
shl eax, 2
sub edx, eax
sub edx, edi
mov dword [esp + 0x14], edx
call sym._snprintf
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], 0x1fe
mov dword [esp + 8], 0x41f770
mov dword [esp], eax
mov dword [esp + 0xc], esi
call sym._snprintf
mov dword [esp], esi
call sym._mydelete2
cmp dword [0x4315ac], 2
je 0x41fc70
mov dword [esp], 0
mov eax, 1
mov dword [0x431c0c], eax
mov dword [esp + 4], 5
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0x41f7b0
call sym._ioutput
mov eax, dword [0x431bbc]
cmp eax, 0x3e8
je 0x41fc58
mov dword [esp], eax
mov dword [esp + 4], 0x41f7f0
mov dword [esp + 8], 0x24
call sym._write
mov eax, 1
mov esi, dword [0x431bbc]
mov dword [esp], 0x186a0
mov ecx, esi
shr esi, 5
and ecx, 0x1f
shl eax, cl
not eax
and dword [esi*4 + 0x431bdc], eax
call sym._usleep
mov eax, dword [0x431bbc]
mov dword [esp], eax
call sym._close
mov eax, 0x3e8
mov dword [0x431bbc], eax
call sym._highestsock
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._mydelete2
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 0
mov ebx, dword [ebp - 0x10]
mov dword [esp], ebx
call sym._writeserver2
jmp 0x41fbc5
mov dword [esp + 4], 0x41f830
add eax, 0x2c
mov dword [esp], eax
call sym._notice
mov eax, 0xfffffffe
mov edi, dword [ebx*4 + 0x433aa8]
mov esi, dword [edi]
mov ecx, esi
and ecx, 0x1f
mov edx, esi
shr edx, 5
rol eax, cl
and dword [edx*4 + 0x431be4], eax
and dword [edx*4 + 0x431bdc], eax
cmp esi, 0x3e8
je 0x41fce2
mov dword [esp], esi
call sym._close
mov edi, dword [ebx*4 + 0x433aa8]
mov eax, dword [edi + 4]
cmp eax, 0x3e8
je 0x41fcfb
mov dword [esp], eax
call sym._close
mov edi, dword [ebx*4 + 0x433aa8]
mov eax, 5
lea edx, [edi + 0x2c]
mov dword [edi + 0x468], eax
mov dword [esp], 0
mov dword [esp + 4], 5
mov dword [esp + 8], 0x21
mov dword [esp + 0xc], 0x41f890
mov dword [esp + 0x10], edx
call sym._ioutput
jmp 0x41fab6
mov dword [esp + 4], 0x41f8b0
add eax, 0x60
mov dword [esp], eax
call sym._notice
mov eax, 0xfffffffe
mov esi, dword [ebx*4 + 0x433918]
mov ecx, dword [esi + 4]
mov edx, ecx
and ecx, 0x1f
rol eax, cl
shr edx, 5
and dword [edi + edx*4], eax
and dword [edx*4 + 0x431bdc], eax
mov eax, dword [esi]
cmp eax, 0x3e8
je 0x41fd84
mov dword [esp], eax
call sym._close
mov esi, dword [ebx*4 + 0x433918]
mov eax, dword [esi + 4]
cmp eax, 0x3e8
je 0x41fd9d
mov dword [esp], eax
call sym._close
mov esi, dword [ebx*4 + 0x433918]
mov eax, dword [esi + 8]
cmp eax, 0x3e8
je 0x41fdb6
mov dword [esp], eax
call sym._close
mov esi, dword [ebx*4 + 0x433918]
mov eax, 5
lea ecx, [esi + 0x60]
mov dword [esi + 0x2dc], eax
mov eax, dword [esi + 0x4c]
inc dword [eax + 0xa00]
mov dword [esp], 0
mov dword [esp + 4], 5
mov dword [esp + 8], 0x21
mov dword [esp + 0xc], 0x41f8ea
mov dword [esp + 0x10], ecx
call sym._ioutput
jmp 0x41fa9f
mov dword [esp], 0
mov dword [esp + 4], 1
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0x41f905
call sym._ioutput
mov eax, dword [ebp + 8]
test eax, eax
je 0x41fe75
mov dword [esp], 0
mov dword [esp + 4], 0x41f930
call sym._mylog
mov edx, dword [0x431258]
test edx, edx
jne 0x41fe58
mov dword [esp], 0x41f43e
mov eax, dword [0x431af0]
mov dword [esp + 4], eax
call sym._printf
mov eax, dword [0x43127c]
test eax, eax
je 0x41fe69
mov dword [esp], eax
call sym._unlink
mov dword [esp], 0
call sym._exit
mov dword [esp], 0
mov dword [esp + 4], 0x41f95b
jmp 0x41fe34
mov dword [esp], 0
mov dword [esp + 4], 1
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0x41f977
jmp 0x41fe19
call sym._gototop
jmp 0x41f9e9