Function at 0x401dfa
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], 0x437ba0
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
mov eax, dword [edx + 0x40]
test eax, eax
je 0x401e5f
cmp dword [esi + 0x48], 0
je 0x401e5f
mov ecx, dword [esi + 0x44]
sub ecx, 1
jb 0x401e42
mov eax, dword [eax + 0x60]
jmp 0x401e38
xor ecx, ecx
movzx edx, word [eax + 0x5e]
cmp ecx, edx
jb 0x401e5f
mov edx, dword [eax + 0x58]
test edx, edx
je 0x402161
movzx ecx, word [eax + 0x5c]
mov eax, edx
jmp 0x401e44
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.00403be9
pop eax
pop ecx
mov eax, dword [esi + 0x40]
test eax, eax
je 0x401f78
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 0x401eec
xor ecx, ecx
cmp edx, dword [eax + edi*8 + 8]
setne cl
cmovb ecx, ebx
inc edi
add esi, 0xfffffff8
cmp cl, 1
je 0x401eca
movzx ecx, cl
test ecx, ecx
je 0x401f03
jmp 0x401eef
mov edi, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x28]
sub ecx, 1
jb 0x401f61
mov eax, dword [eax + edi*4 + 0x60]
xor edi, edi
mov dword [ebp - 0x28], ecx
dec edi
jmp 0x401ebc
test eax, eax
je 0x401f61
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.00407526
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.00401dfa
pop eax
pop ecx
cmp dword [edi], 0
je 0x401f66
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.00404a36
jmp 0x402132
mov esi, dword [ebp - 0x24]
jmp 0x401f72
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 0x401f8c
add esi, 0x10
lea ecx, [ebp - 0x60]
mov edx, esi
call fcn.00406fc3
jmp 0x401fa4
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.00403be9
pop eax
pop ecx
mov esi, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x60]
mov edx, esi
mov dword [ebp - 0x28], ecx
call fcn.004047c5
test al, al
je 0x402176
mov edi, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x7c]
mov edx, edi
mov dword [ebp - 0x34], ecx
call fcn.004047c5
test al, al
jne 0x402185
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.0041fb40
pop eax
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov esi, dword [ebx + 8]
test eax, eax
je 0x4020a2
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.00426b40
pop eax
mov eax, dword [esi]
mov ebx, dword [esi + 4]
test eax, eax
je 0x4020b2
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.0041fb40
pop eax
mov eax, dword [ebp - 0x50]
mov ebx, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x48]
test eax, eax
je 0x4020c1
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.00426b40
pop eax
mov edi, dword [ebp - 0x6c]
mov ebx, dword [ebp - 0x68]
test edi, edi
je 0x4020cc
push 1
push edi
push dword [ebp - 0x30]
call dword [sym.imp.kernel32.dll_MoveFileExW]
mov esi, dword [ebp - 0x24]
test eax, eax
je 0x402143
test ebx, ebx
je 0x40208d
push 2
pop edx
mov ecx, edi
call fcn.00437ad0
cmp dword [ebp - 0x3c], 0
je 0x40209e
push 2
pop edx
mov ecx, dword [ebp - 0x30]
call fcn.00437ad0
mov bl, 4
jmp 0x4020ea
mov edi, ecx
mov dword [ebp - 0x2c], esi
mov ebx, ecx
shrd edi, esi, 8
mov esi, dword [ebp - 0x24]
jmp 0x4020ea
mov edi, dword [ebp - 0x64]
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x2c], edi
shld edi, ebx, 0x18
jmp 0x4020ea
mov edi, ebx
mov dword [ebp - 0x2c], esi
shrd edi, esi, 8
jmp 0x4020d6
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 0x4020ea
push 2
pop edx
mov ecx, dword [ebp - 0x30]
call fcn.00437ad0
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x40]
call fcn.00404a36
mov ecx, dword [ebp - 0x28]
mov edx, esi
call fcn.00404a36
cmp bl, 4
jne 0x402118
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 0x402132
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 0x40215a
push 2
pop edx
mov ecx, edi
call fcn.00437ad0
xor ebx, ebx
jmp 0x4020d9
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 0x4529c0
call fcn.004471a0
pop eax
ud2
push 0x23
pop edx
mov ecx, 0x449576
push 0x44959c
jmp 0x40216e
push 0x24
pop edx
mov ecx, str.assertion_failed:__new_path.exists__
push 0x4495d0
jmp 0x40216e