Function at 0x41d3b0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [ebp + 8]
mov dword [esp + 8], 0x665
mov dword [esp + 4], 0x41d260
mov dword [esp], 0x418370
call sym._updatecontext_f
test ebx, ebx
je 0x41d3ed
mov eax, dword [0x4314b4]
cmp dword [0x431748], eax
jg 0x41d751
mov dword [esp + 0xc], 0x669
mov dword [esp + 8], 0x418370
mov dword [esp + 4], 0x41d260
mov dword [esp], 0x200
call sym._mycalloc2
mov edi, eax
mov eax, dword [0x431298]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0xc], 0x66a
add eax, 5
mov dword [esp + 8], 0x418370
mov dword [esp + 4], 0x41d260
mov dword [esp], eax
call sym._mycalloc2
mov dword [ebp - 0x10], eax
mov eax, dword [0x431298]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0xc], 0x66b
add eax, 6
mov dword [esp + 8], 0x418370
mov dword [esp + 4], 0x41d260
mov dword [esp], eax
call sym._mycalloc2
mov dword [ebp - 0x14], eax
mov eax, dword [0x431298]
mov dword [esp + 4], 0x41d269
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._sprintf
mov dword [esp + 4], 0x41d270
mov eax, dword [0x431298]
mov edx, dword [ebp - 0x14]
mov dword [esp + 8], eax
mov dword [esp], edx
call sym._sprintf
test ebx, ebx
je 0x41d7d5
mov dword [esp + 0xc], 0x41d278
mov dword [esp + 8], 0
mov dword [esp + 4], 5
mov dword [esp], 1
call sym._ioutput
mov dword [esp + 8], 0x1b6
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], 0x10601
mov dword [esp], eax
call sym._open
test eax, eax
mov esi, eax
js 0x41d7a2
mov dword [esp + 8], 0x3b9aca00
mov eax, dword [0x431518]
mov edx, dword [0x431514]
mov dword [esp + 0xc], 0
mov dword [esp + 0x24], eax
mov eax, dword [0x431510]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.___umoddi3
mov dword [esp + 0x20], eax
mov edx, dword [0x431514]
mov eax, dword [0x431510]
mov dword [esp + 8], 0x3b9aca00
mov dword [esp + 0xc], 0
mov dword [esp], eax
mov dword [esp + 4], edx
call sym.___udivdi3
fld dword [0x431508]
mov dword [esp + 0x1c], eax
mov dword [esp + 8], 0x41d2b0
fstp qword [esp + 0x14]
fld dword [0x431504]
mov dword [esp + 4], 0x1ff
mov dword [esp], edi
fstp qword [esp + 0xc]
call sym._snprintf
mov dword [esp], edi
call sym._strlen
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._write
mov dword [esp], 0x432f14
call sym._irlist_get_head
test eax, eax
mov ebx, eax
je 0x41d6cf
nop
lea esi, [esi]
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x10], eax
mov eax, dword [ebx]
mov dword [esp + 8], 0x41d2f0
mov dword [esp + 4], 0x1ff
mov dword [esp + 0xc], eax
mov dword [esp], edi
call sym._snprintf
mov dword [esp], edi
call sym._strlen
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._write
fld dword [ebx + 0x10]
fldz
fxch st(1)
fucom st(1)
fnstsw ax
fstp st(1)
sahf
jbe 0x41d632
fld dword [0x4312b0]
fucomp st(1)
fnstsw ax
sahf
jp 0x41d781
jne 0x41d781
fstp st(0)
mov dword [esp + 8], 0x41d31e
mov dword [esp + 4], 0x1ff
mov dword [esp], edi
call sym._snprintf
mov dword [esp], edi
call sym._strlen
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._write
fld dword [ebx + 0x14]
fldz
fxch st(1)
fucom st(1)
fnstsw ax
fstp st(1)
sahf
jbe 0x41d68b
fld dword [0x4312b4]
fucomp st(1)
fnstsw ax
sahf
jp 0x41d760
jne 0x41d760
fstp st(0)
mov dword [esp + 8], 0x41d328
mov dword [esp + 4], 0x1ff
mov dword [esp], edi
call sym._snprintf
mov dword [esp], edi
call sym._strlen
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._write
mov dword [esp], ebx
call sym._irlist_get_next
test eax, eax
mov ebx, eax
jne 0x41d5c0
mov dword [esp], esi
call sym._close
mov edx, dword [ebp - 0x14]
mov dword [esp], edx
call sym._unlink
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov eax, dword [0x431298]
mov dword [esp], eax
call sym._link
mov edx, dword [ebp - 0x10]
mov eax, dword [0x431298]
mov dword [esp], edx
mov dword [esp + 4], eax
call sym._rename
call sym._xdccsavetext
mov dword [esp + 0xc], 0x41d332
mov dword [esp + 8], 0
mov dword [esp + 4], 5
mov dword [esp], 3
call sym._ioutput
mov dword [esp], edi
call sym._mydelete2
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._mydelete2
mov edx, dword [ebp - 0x14]
mov dword [esp], edx
call sym._mydelete2
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
fstp qword [esp + 0xc]
mov dword [esp + 8], 0x41d337
mov dword [esp + 4], 0x1ff
mov dword [esp], edi
call sym._snprintf
jmp 0x41d6a5
fstp qword [esp + 0xc]
mov dword [esp + 8], 0x41d346
mov dword [esp + 4], 0x1ff
mov dword [esp], edi
call sym._snprintf
jmp 0x41d64c
call sym.___errno
mov eax, dword [eax]
mov dword [esp], eax
call sym._strerror
mov dword [esp + 0xc], eax
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], 0x41d370
mov dword [esp], 0
mov dword [esp + 8], edx
call sym._outerror
jmp 0x41d502
mov dword [esp + 0xc], 0x41d38f
jmp 0x41d4c1