Function at 0x402075
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x78
lea eax, [ebp - 0x18]
mov edi, edx
mov dword [eax - 4], esp
or dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x439750
mov edx, dword fs:[0]
mov dword [eax], edx
mov dword fs:[0], eax
mov eax, dword [edi + 0x44]
test eax, eax
je 0x4020d7
cmp dword [edi + 0x4c], 0
je 0x4020d7
mov edx, dword [edi + 0x48]
sub edx, 1
jb 0x4020ba
mov eax, dword [eax + 0x60]
jmp 0x4020b0
xor esi, esi
movzx edx, word [eax + 0x5e]
cmp esi, edx
jb 0x4020d7
mov edx, dword [eax + 0x58]
test edx, edx
je 0x402413
movzx esi, word [eax + 0x5c]
mov eax, edx
jmp 0x4020bc
mov eax, dword [ebp + 8]
mov bl, byte [ebp + 0xc]
mov dword [ebp - 0x40], ecx
xor ecx, ecx
lea edx, [ebp - 0x84]
mov esi, dword [edi + 0x2c]
inc ecx
inc eax
cmp bl, 2
cmovne ecx, eax
mov eax, ebx
or dword [ebp - 0x10], 0xffffffff
and al, 1
mov dword [edx], ecx
mov dword [ebp - 0x3c], ecx
lea ecx, [ebp - 0x7c]
mov byte [ebp - 0x20], al
mov byte [edx + 4], al
mov eax, dword [edi + 0x28]
push esi
push eax
call fcn.004047d6
pop eax
pop ecx
mov eax, dword [edi + 0x44]
test eax, eax
je 0x402210
mov edx, dword [edi + 0x48]
mov esi, dword [ebp - 0x3c]
xor ebx, ebx
lea ecx, [edi + 0x44]
mov dword [ebp - 0x24], edi
mov edi, 0xff
dec ebx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x28], edx
movzx ecx, word [eax + 0x5e]
mov dword [ebp - 0x2c], ecx
lea ecx, [ecx*8]
test ecx, ecx
je 0x40216a
xor edx, edx
cmp esi, dword [eax + ebx*8 + 8]
setne dl
cmovb edx, edi
inc ebx
add ecx, 0xfffffff8
cmp dl, 1
je 0x402148
movzx ecx, dl
test ecx, ecx
jne 0x40216d
jmp 0x402185
mov ebx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
sub ecx, 1
jb 0x4021fc
mov eax, dword [eax + ebx*4 + 0x60]
xor ebx, ebx
mov dword [ebp - 0x28], ecx
dec ebx
jmp 0x40213a
test eax, eax
je 0x4021fc
mov ecx, dword [eax + ebx*8]
mov al, byte [eax + ebx*8 + 4]
movzx esi, byte [ebp - 0x20]
mov edx, dword [ebp - 0x3c]
mov byte [ebp - 0x1d], 1
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp - 0x38]
mov byte [ebp - 0x2c], al
push esi
call fcn.00408941
pop eax
movzx eax, byte [ebp - 0x2c]
mov edx, dword [ebp - 0x24]
mov byte [ebp - 0x1d], 1
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x28]
call fcn.00402075
pop eax
pop ecx
cmp dword [ebp - 0x5c], 0
mov edi, dword [ebp - 0x24]
mov bl, byte [ebp + 0xc]
je 0x402204
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 - 0x7c]
mov edx, dword [ebp - 0x78]
call fcn.0040ea17
jmp 0x40233c
mov edi, dword [ebp - 0x24]
mov bl, byte [ebp + 0xc]
jmp 0x402210
mov eax, dword [ebp - 0x58]
mov cl, byte [ebp - 0x54]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x20], cl
cmp bl, 2
mov dword [ebp - 0x10], 1
jne 0x40222f
add edi, 0x24
lea ecx, [ebp - 0x5c]
mov byte [ebp - 0x1d], 1
mov edx, edi
call fcn.0040801f
jmp 0x402250
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x4c]
mov esi, dword [edi + 0x2c]
mov byte [ebp - 0x1d], 1
lea ecx, [ebp - 0x5c]
mov dword [edx], eax
mov eax, dword [edi + 0x28]
mov byte [edx + 4], bl
push esi
push eax
call fcn.004047d6
pop eax
pop ecx
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x54]
mov byte [ebp - 0x1e], 0
mov byte [ebp - 0x1f], 1
mov dword [ebp - 0x10], 2
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edx
call fcn.00405188
test al, al
je 0x40242c
mov ecx, dword [ebp - 0x78]
mov edx, dword [ebp - 0x74]
mov byte [ebp - 0x1e], 0
mov byte [ebp - 0x1f], 1
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x6c], edx
call fcn.00405188
test al, al
jne 0x402449
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x10], 3
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 0x4c]
push dword [ebp - 0x24]
call fcn.00421cd0
pop eax
mov eax, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x48]
mov esi, dword [ebp - 0x44]
cmp eax, 0x80000000
je 0x4022f1
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.00428c00
pop eax
mov eax, dword [ebp - 0x68]
mov ebx, dword [ebp - 0x64]
cmp eax, 0x80000000
jne 0x40234d
mov esi, dword [ebp - 0x60]
mov edi, ebx
shr edi, 8
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
call fcn.0040ea17
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x28]
call fcn.0040ea17
cmp bl, 4
jne 0x402325
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
mov dl, byte [ebp - 0x20]
mov dword [eax + 4], ecx
mov byte [eax + 8], dl
and dword [eax], 0
jmp 0x40233c
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, 0x78
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x10], 4
lea ecx, [ebp - 0x4c]
push dword [ebp - 0x6c]
call fcn.00421cd0
pop eax
mov eax, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x48]
mov esi, dword [ebp - 0x44]
cmp eax, 0x80000000
je 0x4023a0
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.00428c00
pop eax
mov edi, dword [ebp - 0x68]
mov ebx, dword [ebp - 0x64]
cmp edi, 0x80000000
jne 0x4023c0
mov esi, dword [ebp - 0x60]
mov eax, dword [ebp - 0x24]
mov edi, ebx
shr edi, 8
test eax, eax
je 0x4022f6
push 2
pop edx
mov ecx, dword [ebp - 0x34]
call fcn.00439670
jmp 0x4022f6
push 1
push ebx
push dword [ebp - 0x34]
call dword [sym.imp.kernel32.dll_MoveFileExW]
test eax, eax
je 0x4023f6
test edi, edi
je 0x4023de
push 2
pop edx
mov ecx, ebx
call fcn.00439670
cmp dword [ebp - 0x24], 0
mov bl, 4
je 0x4023f1
push 2
pop edx
mov ecx, dword [ebp - 0x34]
call fcn.00439670
jmp 0x4022f6
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test edi, edi
je 0x40240c
push 2
pop edx
mov ecx, ebx
call fcn.00439670
mov eax, dword [ebp - 0x24]
xor ebx, ebx
jmp 0x4023a8
and dword [ebp - 0x10], 0
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 0x4539cc
call fcn.00448830
pop eax
jmp 0x402464
mov byte [ebp - 0x1e], 0
mov byte [ebp - 0x1f], 1
push 0x23
pop edx
mov ecx, 0x44a576
push 0x44a59c
call fcn.00448830
pop eax
jmp 0x402464
mov byte [ebp - 0x1e], 0
mov byte [ebp - 0x1f], 1
push 0x24
pop edx
mov ecx, str.assertion_failed:__new_path.exists__
push 0x44a5d0
call fcn.00448830
pop eax
ud2