Function at 0x401dea
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], 0x437860
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
mov eax, dword [edx + 0x40]
test eax, eax
je 0x401e4f
cmp dword [esi + 0x48], 0
je 0x401e4f
mov ecx, dword [esi + 0x44]
sub ecx, 1
jb 0x401e32
mov eax, dword [eax + 0x60]
jmp 0x401e28
xor ecx, ecx
movzx edx, word [eax + 0x5e]
cmp ecx, edx
jb 0x401e4f
mov edx, dword [eax + 0x58]
test edx, edx
je 0x402151
movzx ecx, word [eax + 0x5c]
mov eax, edx
jmp 0x401e34
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.00403bdf
pop eax
pop ecx
mov eax, dword [esi + 0x40]
test eax, eax
je 0x401f68
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 0x401edc
xor ecx, ecx
cmp edx, dword [eax + edi*8 + 8]
setne cl
cmovb ecx, ebx
inc edi
add esi, 0xfffffff8
cmp cl, 1
je 0x401eba
movzx ecx, cl
test ecx, ecx
je 0x401ef3
jmp 0x401edf
mov edi, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x28]
sub ecx, 1
jb 0x401f51
mov eax, dword [eax + edi*4 + 0x60]
xor edi, edi
mov dword [ebp - 0x28], ecx
dec edi
jmp 0x401eac
test eax, eax
je 0x401f51
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.004074ff
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.00401dea
pop eax
pop ecx
cmp dword [edi], 0
je 0x401f56
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.0040d6cf
jmp 0x402122
mov esi, dword [ebp - 0x24]
jmp 0x401f62
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 0x401f7c
add esi, 0x10
lea ecx, [ebp - 0x60]
mov edx, esi
call fcn.00406f97
jmp 0x401f94
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.00403bdf
pop eax
pop ecx
mov esi, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x60]
mov edx, esi
mov dword [ebp - 0x28], ecx
call fcn.004047b7
test al, al
je 0x402166
mov edi, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x7c]
mov edx, edi
mov dword [ebp - 0x34], ecx
call fcn.004047b7
test al, al
jne 0x402175
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.0041fbe0
pop eax
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov esi, dword [ebx + 8]
test eax, eax
je 0x402092
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.00426b80
pop eax
mov eax, dword [esi]
mov ebx, dword [esi + 4]
test eax, eax
je 0x4020a2
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.0041fbe0
pop eax
mov eax, dword [ebp - 0x50]
mov ebx, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x48]
test eax, eax
je 0x4020b1
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.00426b80
pop eax
mov edi, dword [ebp - 0x6c]
mov ebx, dword [ebp - 0x68]
test edi, edi
je 0x4020bc
push 1
push edi
push dword [ebp - 0x30]
call dword [sym.imp.kernel32.dll_MoveFileExW]
mov esi, dword [ebp - 0x24]
test eax, eax
je 0x402133
test ebx, ebx
je 0x40207d
push 2
pop edx
mov ecx, edi
call fcn.0040c710
cmp dword [ebp - 0x3c], 0
je 0x40208e
push 2
pop edx
mov ecx, dword [ebp - 0x30]
call fcn.0040c710
mov bl, 4
jmp 0x4020da
mov edi, ecx
mov dword [ebp - 0x2c], esi
mov ebx, ecx
shrd edi, esi, 8
mov esi, dword [ebp - 0x24]
jmp 0x4020da
mov edi, dword [ebp - 0x64]
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x2c], edi
shld edi, ebx, 0x18
jmp 0x4020da
mov edi, ebx
mov dword [ebp - 0x2c], esi
shrd edi, esi, 8
jmp 0x4020c6
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 0x4020da
push 2
pop edx
mov ecx, dword [ebp - 0x30]
call fcn.0040c710
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x40]
call fcn.0040d6cf
mov ecx, dword [ebp - 0x28]
mov edx, esi
call fcn.0040d6cf
cmp bl, 4
jne 0x402108
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 0x402122
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 0x40214a
push 2
pop edx
mov ecx, edi
call fcn.0040c710
xor ebx, ebx
jmp 0x4020c9
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 0x452a1c
call fcn.00446e60
pop eax
ud2
push 0x23
pop edx
mov ecx, 0x449576
push 0x44959c
jmp 0x40215e
push 0x24
pop edx
mov ecx, str.assertion_failed:__new_path.exists__
push 0x4495d0
jmp 0x40215e