Function at 0x4099e0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5120e7
mov eax, dword fs:[0]
push eax
sub esp, 0x8dc
mov eax, dword [0x573054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x834], 0
mov dword [ebp - 0x830], 0
mov dword [ebp - 0x834], 0
mov dword [ebp - 0x830], 7
mov word [ebp - 0x844], ax
lea ecx, [ebp - 0x8d0]
mov dword [ebp - 4], 1
call fcn.004b6e80
lea eax, [ebp - 0x8d0]
mov byte [ebp - 4], 2
cmp eax, esi
je 0x409a85
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x409a76
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x8d0]
push eax
call fcn.004033d0
lea eax, [ebp - 0x8b8]
cmp eax, edi
je 0x409aa8
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x409a99
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x8b8]
push eax
call fcn.004033d0
mov ecx, edi
call fcn.004b7bf0
test al, al
je 0x409c1e
mov ecx, edi
call fcn.004d5010
test al, al
jne 0x409c1e
mov byte [ebp - 4], 3
xor eax, eax
mov dword [ebp - 0x81c], 0
mov dword [ebp - 0x818], 0
mov dword [ebp - 0x81c], 0
mov dword [ebp - 0x818], 7
mov word [ebp - 0x82c], ax
lea ecx, [ebp - 0x82c]
mov byte [ebp - 4], 4
call fcn.004d5170
lea eax, [ebp - 0x82c]
push eax
call fcn.004b7610
add esp, 4
test al, al
jne 0x409b28
lea ecx, [ebp - 0x82c]
call fcn.004b7780
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea esi, [ebp - 0x82c]
cmp dword [ebp - 0x818], 8
cmovae esi, dword [ebp - 0x82c]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
lea eax, [ebp - 0x810]
push str._ws.bak_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov dword [ebp - 0x8d8], 0
xor eax, eax
mov dword [ebp - 0x8d4], 0
lea edx, [ebp - 0x810]
mov dword [ebp - 0x8d8], 0
mov dword [ebp - 0x8d4], 7
lea ecx, [edx + 2]
mov word [ebp - 0x8e8], ax
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x409bb0
sub edx, ecx
lea eax, [ebp - 0x810]
sar edx, 1
lea ecx, [ebp - 0x8e8]
push edx
push eax
call fcn.004033d0
lea edx, [ebp - 0x8e8]
mov byte [ebp - 4], 5
mov ecx, edi
call fcn.004d4eb0
lea ecx, [ebp - 0x8e8]
mov byte [ebp - 4], 6
call fcn.00403370
push 4
push 0
lea eax, [ebp - 0x810]
mov byte [ebp - 4], 4
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0x82c]
mov byte [ebp - 4], 0xa
call fcn.00403370
mov byte [ebp - 4], 2
xor bl, bl
jmp 0x409c70
lea ecx, [ebp - 0x814]
mov dword [ebp - 0x814], 0
call fcn.004b6f20
sub esp, 0xc
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x8d0]
lea ecx, [ebp - 0x814]
push eax
call fcn.004b7030
test al, al
je 0x409c5f
mov ecx, edi
call fcn.004b7bf0
test al, al
je 0x409c5f
mov bl, 1
jmp 0x409c61
xor bl, bl
lea ecx, [ebp - 0x814]
mov byte [ebp - 4], 2
call fcn.004b6fa0
lea ecx, [ebp - 0x860]
mov byte [ebp - 4], 0x14
call fcn.00403370
lea ecx, [ebp - 0x888]
mov byte [ebp - 4], 0x18
call fcn.00403370
lea ecx, [ebp - 0x8a0]
mov byte [ebp - 4], 0x1c
call fcn.00403370
lea ecx, [ebp - 0x8b8]
mov byte [ebp - 4], 0x20
call fcn.00403370
lea ecx, [ebp - 0x8d0]
mov byte [ebp - 4], 0x24
call fcn.00403370
lea ecx, [ebp - 0x844]
mov dword [ebp - 4], 0x28
call fcn.00403370
mov dword [ebp - 4], 0xffffffff
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050f48d
mov esp, ebp
pop ebp
ret 8