Function at 0x4069c0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov dword [esp], 0x402281
mov dword [esp + 4], 0x406900
mov dword [esp + 8], 0x53e
call sym._updatecontext_f
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x14]
test eax, eax
jne 0x406d9e
mov eax, dword [ebp - 0x14]
test eax, eax
jle 0x406a12
mov edx, dword [0x431e1c]
cmp dword [ebp - 0x14], edx
jle 0x406a30
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], 0x405ff0
mov dword [esp], eax
call sym._u_respond
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x406a3f
cmp byte [eax], 0
jne 0x406a4f
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], 0x406909
mov dword [esp], eax
jmp 0x406a20
mov ebx, 1
xor edi, edi
cmp ebx, edx
jg 0x406a84
mov ecx, 0x433460
nop
mov eax, dword [ecx + edi*4 + 4]
test eax, eax
jne 0x406a79
mov eax, 0x433460
lea esi, [esi]
inc edi
mov esi, dword [eax + edi*4 + 4]
test esi, esi
je 0x406a70
cmp ebx, dword [ebp - 0x14]
je 0x406a84
inc ebx
inc edi
cmp ebx, edx
jle 0x406a60
mov edx, dword [0x433464]
xor ebx, ebx
test edx, edx
je 0x406aa9
mov eax, 0x433460
lea esi, [esi]
lea edi, [edi]
inc ebx
mov ecx, dword [eax + ebx*4 + 4]
test ecx, ecx
jne 0x406aa0
mov dword [esp], 0xa24
mov esi, 0x433460
mov dword [esp + 4], 0x406900
mov dword [esp + 8], 0x402281
mov dword [esp + 0xc], 0x554
call sym._mycalloc2
mov dword [esi + ebx*4 + 4], eax
mov dword [esp], eax
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x10]
mov dword [esp + 8], 0x1ff
mov dword [esp + 4], eax
call sym._strncpy
mov eax, dword [esi + ebx*4 + 4]
add eax, 0x200
mov dword [esp], eax
mov eax, dword [esi + edi*4 + 4]
mov dword [esp + 8], 0x1ff
add eax, 0x200
mov dword [esp + 4], eax
call sym._strncpy
mov edx, dword [esi + edi*4 + 4]
cmp byte [edx + 0x400], 0
je 0x406d82
mov eax, dword [ebx*4 + 0x433464]
lea esi, [edx + 0x400]
mov dword [esp + 4], esi
add eax, 0x400
mov dword [esp], eax
mov dword [esp + 8], 0x1ff
call sym._strncpy
mov edx, dword [0x431290]
mov eax, 0x433460
mov ecx, dword [eax + ebx*4 + 4]
mov esi, dword [eax + edi*4 + 4]
mov dword [ecx + 0xa04], edx
mov eax, dword [esi + 0xa00]
fld dword [esi + 0xa04]
fld dword [0x431290]
fxch st(1)
mov dword [ecx + 0xa00], eax
fucom st(1)
fnstsw ax
fstp st(1)
sahf
jp 0x406b8f
je 0x406d7b
fstp dword [ecx + 0xa04]
mov esi, 0x433460
mov ecx, dword [esi + ebx*4 + 4]
mov edx, dword [0x431294]
mov eax, dword [esi + edi*4 + 4]
mov dword [ecx + 0xa08], edx
fld dword [eax + 0xa08]
fld dword [0x431294]
fxch st(1)
fucom st(1)
fnstsw ax
fstp st(1)
sahf
jp 0x406bcb
je 0x406d74
fstp dword [ecx + 0xa08]
mov dword [esp + 4], 0x10000
mov eax, dword [ebx*4 + 0x433464]
mov dword [esp], eax
call sym._open
mov dword [ebp - 0x18], eax
test eax, eax
js 0x406d03
mov eax, dword [ebp - 0x18]
mov esi, dword [ebx*4 + 0x433464]
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [esp + 8], 2
call sym._lseek
mov dword [esi + 0xa0c], eax
mov eax, dword [ebx*4 + 0x433464]
mov eax, dword [eax + 0xa0c]
test eax, eax
jne 0x406c5c
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], 0x406923
mov dword [esp], eax
call sym._u_respond
mov eax, dword [ebx*4 + 0x433464]
xor esi, esi
mov dword [esp], eax
call sym._mydelete2
mov dword [ebx*4 + 0x433464], esi
jmp 0x406a25
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._close
mov dword [esp], 0x200
mov dword [esp + 4], 0x406900
mov dword [esp + 8], 0x402281
mov dword [esp + 0xc], 0x57e
call sym._mycalloc2
mov dword [esp], eax
mov esi, eax
mov dword [esp + 4], 0x1fe
mov dword [esp + 8], 0x406950
mov eax, dword [ebp - 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [edi*4 + 0x433464]
mov dword [esp + 0x10], eax
mov eax, dword [ebx*4 + 0x433464]
mov dword [esp + 0x14], eax
call sym._snprintf
mov ecx, dword [ebp - 0x10]
mov dword [esp + 4], esi
mov dword [esp], ecx
call sym._u_respond
mov dword [esp], esi
call sym._mydelete2
xor edx, edx
mov eax, dword [ebx*4 + 0x433464]
mov dword [edi*4 + 0x433464], eax
mov dword [ebx*4 + 0x433464], edx
mov dword [ebp + 8], 0
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
jmp sym._xdccsave
mov edx, dword [0x4312e8]
test edx, edx
jne 0x406d2b
mov eax, dword [ebp - 0x18]
test eax, eax
jns 0x406bf3
mov edi, dword [ebp - 0x10]
mov dword [esp + 4], 0x406990
mov dword [esp], edi
jmp 0x406c3a
mov dword [esp + 0xc], edx
mov eax, dword [ebx*4 + 0x433464]
mov dword [esp + 4], 0x1fe
mov dword [esp + 8], 0x4069b1
mov dword [esp], eax
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x10], eax
call sym._snprintf
mov eax, dword [ebx*4 + 0x433464]
mov dword [esp + 4], 0x10000
mov dword [esp], eax
call sym._open
mov dword [ebp - 0x18], eax
jmp 0x406d0d
fstp st(0)
jmp 0x406bd1
fstp st(0)
jmp 0x406b95
mov dword [esp + 4], 0x40228d
mov eax, dword [ebx*4 + 0x433464]
add eax, 0x400
mov dword [esp], eax
jmp 0x406b40
mov dword [esp], eax
call sym._atoi
mov dword [ebp - 0x14], eax
jmp 0x406a00