Function at 0x401dcf
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x78
lea eax, [ebp - 0x18]
mov dword [ebp - 0x44], ecx
mov esi, edx
mov dword [eax - 4], esp
or dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x4375e0
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
mov eax, dword [edx + 0x40]
test eax, eax
je 0x401e34
cmp dword [esi + 0x48], 0
je 0x401e34
mov ecx, dword [esi + 0x44]
sub ecx, 1
jb 0x401e17
mov eax, dword [eax + 0x60]
jmp 0x401e0d
xor ecx, ecx
movzx edx, word [eax + 0x5e]
cmp ecx, edx
jb 0x401e34
mov edx, dword [eax + 0x58]
test edx, edx
je 0x402136
movzx ecx, word [eax + 0x5c]
mov eax, edx
jmp 0x401e19
mov edi, dword [ebp + 8]
mov bl, byte [ebp + 0xc]
xor ecx, ecx
lea edx, [ebp - 0x84]
inc ecx
lea eax, [edi + 1]
cmp bl, 2
cmovne ecx, eax
mov ah, bl
and ah, 1
mov dword [edx], ecx
mov dword [ebp - 0x38], ecx
lea ecx, [ebp - 0x7c]
mov byte [ebp - 0x1d], ah
mov byte [edx + 4], ah
push dword [esi + 0x18]
push dword [esi + 0x10]
call fcn.00403bdb
pop eax
pop ecx
mov eax, dword [esi + 0x40]
test eax, eax
je 0x401f4d
mov edx, dword [esi + 0x44]
xor edi, edi
lea ecx, [esi + 0x40]
mov ebx, 0xff
mov dword [ebp - 0x24], esi
dec edi
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x28], edx
mov edx, dword [ebp - 0x38]
movzx ecx, word [eax + 0x5e]
lea esi, [ecx*8]
mov dword [ebp - 0x34], ecx
test esi, esi
je 0x401ec1
xor ecx, ecx
cmp edx, dword [eax + edi*8 + 8]
setne cl
cmovb ecx, ebx
inc edi
add esi, 0xfffffff8
cmp cl, 1
je 0x401e9f
movzx ecx, cl
test ecx, ecx
je 0x401ed8
jmp 0x401ec4
mov edi, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x28]
sub ecx, 1
jb 0x401f36
mov eax, dword [eax + edi*4 + 0x60]
xor edi, edi
mov dword [ebp - 0x28], ecx
dec edi
jmp 0x401e91
test eax, eax
je 0x401f36
mov ecx, dword [eax + edi*8]
mov ebx, dword [eax + edi*8 + 4]
movzx eax, byte [ebp - 0x1d]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp - 0x40]
push eax
call fcn.0040750b
pop eax
mov esi, dword [ebp - 0x24]
lea edi, [ebp - 0x60]
mov ecx, edi
mov edx, esi
push ebx
push dword [ebp - 0x28]
call fcn.00401dcf
pop eax
pop ecx
cmp dword [edi], 0
je 0x401f3b
mov eax, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x58]
mov dword [edx + 8], ecx
mov dword [edx + 4], eax
mov dword [edx], 1
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ebp - 0x78]
call fcn.0040ce31
jmp 0x402107
mov esi, dword [ebp - 0x24]
jmp 0x401f47
mov eax, dword [ebp - 0x5c]
mov cl, byte [ebp - 0x58]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x1d], cl
mov bl, byte [ebp + 0xc]
mov edi, dword [ebp + 8]
cmp bl, 2
jne 0x401f61
add esi, 0x10
lea ecx, [ebp - 0x60]
mov edx, esi
call fcn.00406fa3
jmp 0x401f79
lea edx, [ebp - 0x50]
lea ecx, [ebp - 0x60]
mov dword [edx], edi
mov byte [edx + 4], bl
push dword [esi + 0x18]
push dword [esi + 0x10]
call fcn.00403bdb
pop eax
pop ecx
mov esi, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x60]
mov edx, esi
mov dword [ebp - 0x28], ecx
call fcn.004047b3
test al, al
je 0x40214b
mov edi, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x7c]
mov edx, edi
mov dword [ebp - 0x34], ecx
call fcn.004047b3
test al, al
jne 0x40215a
mov ecx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x28]
lea ebx, [ebp - 0x50]
mov dword [ebp - 0x40], ecx
mov ecx, ebx
mov dword [ebp - 0x24], eax
push esi
call fcn.0041f950
pop eax
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov esi, dword [ebx + 8]
test eax, eax
je 0x402077
lea edx, [ebp - 0x50]
mov dword [edx], eax
mov dword [edx + 8], esi
lea esi, [ebp - 0x6c]
mov dword [edx + 4], ecx
mov ecx, esi
push 1
call fcn.00426900
pop eax
mov eax, dword [esi]
mov ebx, dword [esi + 4]
test eax, eax
je 0x402087
and dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x50]
push edi
call fcn.0041f950
pop eax
mov eax, dword [ebp - 0x50]
mov ebx, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x48]
test eax, eax
je 0x402096
lea edx, [ebp - 0x50]
lea ecx, [ebp - 0x6c]
mov dword [edx], eax
mov dword [edx + 4], ebx
mov dword [edx + 8], esi
push 1
call fcn.00426900
pop eax
mov edi, dword [ebp - 0x6c]
mov ebx, dword [ebp - 0x68]
test edi, edi
je 0x4020a1
push 1
push edi
push dword [ebp - 0x30]
call dword [sym.imp.kernel32.dll_MoveFileExW]
mov esi, dword [ebp - 0x24]
test eax, eax
je 0x402118
test ebx, ebx
je 0x402062
push 2
pop edx
mov ecx, edi
call fcn.0040c6e0
cmp dword [ebp - 0x3c], 0
je 0x402073
push 2
pop edx
mov ecx, dword [ebp - 0x30]
call fcn.0040c6e0
mov bl, 4
jmp 0x4020bf
mov edi, ecx
mov dword [ebp - 0x2c], esi
mov ebx, ecx
shrd edi, esi, 8
mov esi, dword [ebp - 0x24]
jmp 0x4020bf
mov edi, dword [ebp - 0x64]
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x2c], edi
shld edi, ebx, 0x18
jmp 0x4020bf
mov edi, ebx
mov dword [ebp - 0x2c], esi
shrd edi, esi, 8
jmp 0x4020ab
mov edi, dword [ebp - 0x64]
mov dword [ebp - 0x2c], edi
shld edi, ebx, 0x18
mov esi, dword [ebp - 0x24]
cmp dword [ebp - 0x3c], 0
je 0x4020bf
push 2
pop edx
mov ecx, dword [ebp - 0x30]
call fcn.0040c6e0
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x40]
call fcn.0040ce31
mov ecx, dword [ebp - 0x28]
mov edx, esi
call fcn.0040ce31
cmp bl, 4
jne 0x4020ed
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x38]
mov dl, byte [ebp - 0x1d]
mov dword [eax + 4], ecx
mov byte [eax + 8], dl
and dword [eax], 0
jmp 0x402107
mov edx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x2c]
movzx eax, bl
shl edi, 8
or edi, eax
mov dword [edx + 8], ecx
mov dword [edx + 4], edi
mov dword [edx], 1
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x78
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.kernel32.dll_GetLastError]
test ebx, ebx
mov dword [ebp - 0x2c], eax
je 0x40212f
push 2
pop edx
mov ecx, edi
call fcn.0040c6e0
xor ebx, ebx
jmp 0x4020ae
push 0x2b
pop edx
mov ecx, str.called__Option::unwrap____on_a__None__value_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112librarycore_srcio_borrowed_buf.rs_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112library_alloc_srccollections_btree_navigate.rs
push 0x4519fc
call fcn.00446be0
pop eax
ud2
push 0x23
pop edx
mov ecx, 0x448576
push 0x44859c
jmp 0x402143
push 0x24
pop edx
mov ecx, str.assertion_failed:__new_path.exists__
push 0x4485d0
jmp 0x402143