Function at 0x401e2f
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x74
lea eax, [ebp - 0x18]
mov dword [ebp - 0x40], ecx
mov esi, edx
mov dword [eax - 4], esp
or dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x436f60
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
mov eax, dword [edx + 0x44]
test eax, eax
je 0x401e94
cmp dword [esi + 0x4c], 0
je 0x401e94
mov ecx, dword [esi + 0x48]
sub ecx, 1
jb 0x401e77
mov eax, dword [eax + 0x60]
jmp 0x401e6d
xor ecx, ecx
movzx edx, word [eax + 0x5e]
cmp ecx, edx
jb 0x401e94
mov edx, dword [eax + 0x58]
test edx, edx
je 0x402179
movzx ecx, word [eax + 0x5c]
mov eax, edx
jmp 0x401e79
mov edi, dword [ebp + 8]
mov bl, byte [ebp + 0xc]
xor ecx, ecx
lea edx, [ebp - 0x80]
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 - 0x3c], ecx
lea ecx, [ebp - 0x78]
mov byte [ebp - 0x1d], ah
mov byte [edx + 4], ah
push dword [esi + 0x2c]
push dword [esi + 0x28]
call fcn.00403c50
pop eax
pop ecx
mov eax, dword [esi + 0x44]
test eax, eax
je 0x401faa
mov edx, dword [esi + 0x48]
xor edi, edi
lea ecx, [esi + 0x44]
mov ebx, 0xff
mov dword [ebp - 0x34], esi
dec edi
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x24], edx
mov edx, dword [ebp - 0x3c]
movzx ecx, word [eax + 0x5e]
lea esi, [ecx*8]
mov dword [ebp - 0x38], ecx
test esi, esi
je 0x401f1e
xor ecx, ecx
cmp edx, dword [eax + edi*8 + 8]
setne cl
cmovb ecx, ebx
inc edi
add esi, 0xfffffff8
cmp cl, 1
je 0x401efc
movzx ecx, cl
test ecx, ecx
jne 0x401f21
jmp 0x401f35
mov edi, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x24]
sub ecx, 1
jb 0x401f93
mov eax, dword [eax + edi*4 + 0x60]
xor edi, edi
mov dword [ebp - 0x24], ecx
dec edi
jmp 0x401eee
test eax, eax
je 0x401f93
mov ecx, dword [eax + edi*8]
mov ebx, dword [eax + edi*8 + 4]
movzx eax, byte [ebp - 0x1d]
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x2c]
push eax
call fcn.00407164
pop eax
mov esi, dword [ebp - 0x34]
lea edi, [ebp - 0x5c]
mov ecx, edi
mov edx, esi
push ebx
push dword [ebp - 0x24]
call fcn.00401e2f
pop eax
pop ecx
cmp dword [edi], 0
je 0x401f98
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x54]
mov dword [edx + 8], ecx
mov dword [edx + 4], eax
mov dword [edx], 1
mov ecx, dword [ebp - 0x78]
mov edx, dword [ebp - 0x74]
call fcn.0040d2d6
jmp 0x4020a4
mov esi, dword [ebp - 0x34]
jmp 0x401fa4
mov eax, dword [ebp - 0x58]
mov cl, byte [ebp - 0x54]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x1d], cl
mov bl, byte [ebp + 0xc]
mov edi, dword [ebp + 8]
cmp bl, 2
jne 0x401fbe
add esi, 0x24
lea ecx, [ebp - 0x5c]
mov edx, esi
call fcn.00406bf3
jmp 0x401fd6
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x5c]
mov dword [edx], edi
mov byte [edx + 4], bl
push dword [esi + 0x2c]
push dword [esi + 0x28]
call fcn.00403c50
pop eax
pop ecx
mov esi, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x58]
mov edx, esi
mov dword [ebp - 0x24], ecx
call fcn.00404454
test al, al
je 0x40218b
mov edi, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x74]
mov edx, edi
mov dword [ebp - 0x38], ecx
call fcn.00404454
test al, al
jne 0x40219d
mov ecx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x24]
lea ebx, [ebp - 0x4c]
mov dword [ebp - 0x2c], ecx
mov ecx, ebx
mov dword [ebp - 0x34], eax
push esi
call fcn.0041f870
pop eax
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov esi, dword [ebx + 8]
cmp eax, 0x80000000
je 0x402057
lea edx, [ebp - 0x4c]
mov dword [edx], eax
mov dword [edx + 8], esi
lea esi, [ebp - 0x68]
mov dword [edx + 4], ecx
mov ecx, esi
push 1
call fcn.004267d0
pop eax
mov eax, dword [esi]
mov ecx, dword [esi + 4]
cmp eax, 0x80000000
jne 0x4020b5
mov esi, dword [ebp - 0x60]
mov edi, ecx
mov ebx, ecx
shr edi, 8
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x38]
call fcn.0040d2d6
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x24]
call fcn.0040d2d6
cmp bl, 4
jne 0x40208d
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
mov dl, byte [ebp - 0x1d]
mov dword [eax + 4], ecx
mov byte [eax + 8], dl
and dword [eax], 0
jmp 0x4020a4
mov ecx, dword [ebp - 0x40]
movzx eax, bl
shl edi, 8
or edi, eax
mov dword [ecx + 8], esi
mov dword [ecx + 4], edi
mov dword [ecx], 1
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x74
pop esi
pop edi
pop ebx
pop ebp
ret
and dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x4c]
push edi
call fcn.0041f870
pop eax
mov eax, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x48]
mov esi, dword [ebp - 0x44]
cmp eax, 0x80000000
je 0x402103
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x68]
mov dword [edx], eax
mov dword [edx + 4], ebx
mov dword [edx + 8], esi
push 1
call fcn.004267d0
pop eax
mov edi, dword [ebp - 0x68]
mov ebx, dword [ebp - 0x64]
cmp edi, 0x80000000
jne 0x402123
mov esi, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x30]
mov edi, ebx
shr edi, 8
test eax, eax
je 0x40205e
push 2
pop edx
call fcn.0040c3d0
jmp 0x40205e
push 1
push ebx
push dword [ebp - 0x28]
call dword [sym.imp.kernel32.dll_MoveFileExW]
test eax, eax
je 0x402159
test edi, edi
je 0x402141
push 2
pop edx
mov ecx, ebx
call fcn.0040c3d0
cmp dword [ebp - 0x30], 0
mov bl, 4
je 0x402154
push 2
pop edx
mov ecx, dword [ebp - 0x28]
call fcn.0040c3d0
jmp 0x40205e
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test edi, edi
je 0x40216f
push 2
pop edx
mov ecx, ebx
call fcn.0040c3d0
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x30]
xor ebx, ebx
jmp 0x40210e
push 0x2b
pop edx
mov ecx, str.called__Option::unwrap____on_a__None__value_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrarycore_srcio_borrowed_buf.rs_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_alloc_srccollections_btree_navigate.rs
push 0x4518b0
call fcn.00445e50
push 0x23
pop edx
mov ecx, 0x448576
push 0x44859c
call fcn.00445e50
push 0x24
pop edx
mov ecx, str.assertion_failed:__new_path.exists__
push 0x4485d0
call fcn.00445e50
push ebp
sub esp, 0xc
add ebp, 0xc
cmp dword [ebp - 0x30], 0
je 0x4021c7
push 2
pop edx
mov ecx, dword [ebp - 0x28]
call fcn.0040c3d0
add esp, 0xc
pop ebp
ret