Function at 0x420690
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f7c5
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x4c0100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
xor eax, eax
xorps xmm0, xmm0
mov dword [ebp - 0xe4], eax
push eax
push eax
movups xmmword [ebp - 0x9c], xmm0
push 1
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], 7
mov word [ebp - 0x9c], ax
movups xmmword [ebp - 0x80], xmm0
push eax
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0x84], 3
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], 7
mov word [ebp - 0x80], ax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x68], eax
mov dword [ebp - 4], 0
cmp dword [esi + 0x10], 0
je 0x420a9e
cmp dword [edi + 0x10], 0
je 0x420a9e
push str..tmp
mov edx, edi
lea ecx, [ebp - 0x28]
call fcn.004097d0
add esp, 4
mov byte [ebp - 4], 1
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x14], 7
cmova edx, dword [ebp - 0x28]
cmp dword [esi + 0x14], 7
jbe 0x420764
mov esi, dword [esi]
push ecx
mov ecx, esi
call fcn.00418790
add esp, 4
test al, al
je 0x420a8c
xorps xmm0, xmm0
mov dword [ebp - 0xa8], 0
xor eax, eax
mov dword [ebp - 0xa4], 7
movups xmmword [ebp - 0xb8], xmm0
mov word [ebp - 0xb8], ax
lea eax, [ebp - 0xb8]
mov byte [ebp - 4], 2
push eax
push 0x1194
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xa0]
call fcn.0041bdd0
sub eax, 0
je 0x4207ea
sub eax, 1
je 0x4207e0
sub eax, 1
je 0x4207d6
mov esi, 0xeeac9002
jmp 0x420a30
mov esi, 0xeeac9003
jmp 0x420a30
mov esi, 0xeeac9004
jmp 0x420a30
xorps xmm0, xmm0
mov dword [ebp - 0x5c], 0
xor eax, eax
movq qword [ebp - 0x64], xmm0
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
lea eax, [ebp - 0xb8]
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0x64]
lea ecx, [ebp - 0x28]
call fcn.004200a0
add esp, 4
test al, al
je 0x420a23
cmp dword [ebp - 0x44], 7
lea eax, [ebp - 0x58]
mov ecx, dword [ebp - 0x48]
mov edx, 0x1d
cmova eax, dword [ebp - 0x58]
mov esi, ecx
cmp ecx, edx
cmova esi, edx
mov edx, 0x4b690c
test esi, esi
je 0x420881
sub eax, edx
mov dword [ebp - 0xe4], eax
nop dword [eax]
movzx ecx, word [edx + eax]
movzx eax, word [edx]
cmp cx, ax
jne 0x420a1c
mov eax, dword [ebp - 0xe4]
add edx, 2
sub esi, 1
jne 0x420860
mov ecx, dword [ebp - 0x48]
cmp ecx, 0x1d
jb 0x420a1c
ja 0x420a1c
xorps xmm0, xmm0
mov dword [ebp - 0xd4], 0
xor eax, eax
movq qword [ebp - 0xdc], xmm0
movups xmmword [ebp - 0xd0], xmm0
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], 7
mov word [ebp - 0xd0], ax
mov byte [ebp - 4], 4
cmp byte [ebp + 8], al
jne 0x420944
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x4208dc
mov eax, dword [edi]
push eax
lea ecx, [ebp - 0x40]
call fcn.00403810
mov eax, 1
mov byte [ebp - 4], 5
mov dword [ebp - 0xe8], eax
lea edx, [ebp - 0xdc]
mov dword [ebp - 0xe4], eax
lea ecx, [ebp - 0x40]
lea eax, [ebp - 0xb8]
push eax
call fcn.004200a0
add esp, 4
test al, al
je 0x420944
mov eax, dword [ebp - 0x64]
cmp eax, dword [ebp - 0xdc]
ja 0x420944
jne 0x42093b
mov eax, dword [ebp - 0x60]
cmp eax, dword [ebp - 0xd8]
ja 0x420944
jne 0x42093b
mov eax, dword [ebp - 0x5c]
cmp eax, dword [ebp - 0xd4]
ja 0x420944
mov byte [ebp - 0xdd], 0
jmp 0x42094b
mov byte [ebp - 0xdd], 1
mov dword [ebp - 4], 4
test byte [ebp - 0xe8], 1
je 0x420963
lea ecx, [ebp - 0x40]
call fcn.004037b0
cmp byte [ebp - 0xdd], 0
je 0x420a0d
push str..bak
mov edx, edi
lea ecx, [ebp - 0x40]
call fcn.004097d0
add esp, 4
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 7
mov ecx, edi
cmova eax, dword [ebp - 0x40]
cmp dword [edi + 0x14], 7
jbe 0x420997
mov ecx, dword [edi]
push 1
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x4209f0
cmp dword [edi + 0x14], 7
jbe 0x4209ad
mov edi, dword [edi]
cmp dword [ebp - 0x14], 7
lea ecx, [ebp - 0x28]
mov edx, edi
cmova ecx, dword [ebp - 0x28]
push ecx
call fcn.00418790
add esp, 4
test al, al
je 0x4209f0
xor esi, esi
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 7
cmova eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x40]
call fcn.004037b0
lea ecx, [ebp - 0xdc]
call fcn.00418cb0
jmp 0x420a28
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x40]
mov esi, eax
call fcn.004037b0
lea ecx, [ebp - 0xdc]
call fcn.00418cb0
jmp 0x420a28
lea ecx, [ebp - 0xdc]
xor esi, esi
call fcn.00418cb0
jmp 0x420a28
mov esi, 0xeeac9005
jmp 0x420a28
mov esi, 0xeeac9006
lea ecx, [ebp - 0x64]
call fcn.00418cb0
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0xa4]
cmp ecx, 7
jbe 0x420a94
mov edx, dword [ebp - 0xb8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x420a78
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x420b78
push ecx
push edx
call fcn.0047292b
add esp, 8
lea ecx, [ebp - 0x28]
call fcn.004037b0
jmp 0x420aa3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0x28]
call fcn.004037b0
jmp 0x420aa3
mov esi, 0x57
mov eax, dword [ebp - 0xa0]
test eax, eax
je 0x420acc
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0xa0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xa0], 0
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x6c]
cmp ecx, 7
jbe 0x420b0b
mov edx, dword [ebp - 0x80]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x420b01
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x420b78
push ecx
push edx
call fcn.0047292b
add esp, 8
mov ecx, dword [ebp - 0x88]
xor eax, eax
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 7
mov word [ebp - 0x80], ax
cmp ecx, 7
jbe 0x420b5b
mov edx, dword [ebp - 0x9c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x420b51
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x420b78
push ecx
push edx
call fcn.0047292b
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004728e8
mov esp, ebp
pop ebp
ret
call fcn.004780c4
int3