Function at 0x459350
Capabilities:
Delete file
Move file

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e840b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x100
mov eax, dword [0x522104]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0xe8], esi
mov edx, esi
lea ecx, [ebp - 0x2c]
call fcn.00458e50
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
cmp eax, 4
jb 0x4598af
lea ecx, [eax - 4]
cmp eax, ecx
jb 0x4598d5
sub eax, ecx
mov edx, 4
cmp eax, edx
push 4
cmovb edx, eax
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
push str..log
cmovae eax, dword [ebp - 0x2c]
lea ecx, [eax + ecx*2]
call fcn.004174d0
add esp, 8
test eax, eax
jne 0x4598af
call fcn.0048f6a0
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
mov dword [ebp - 0xe4], eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0xe4]
mov dword [ebp - 0x34], edx
push eax
mov edx, str._s.to_rotate._016llx
call fcn.00416cb0
add esp, 8
mov byte [ebp - 4], 1
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x45943c
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [edi + 0x10]
mov dword [ebp - 0xe4], ecx
lea ecx, [ebp - 0xc8]
push eax
call fcn.00487ce0
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 2
push ecx
mov edx, eax
lea ecx, [ebp - 0x68]
call fcn.00449990
add esp, 0xc
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 4
call fcn.0040ab30
cmp dword [ebp - 0x84], 8
lea eax, [ebp - 0x98]
push dword [ebp - 0x88]
cmovae eax, dword [ebp - 0x98]
mov ecx, esi
push eax
call fcn.00459090
add esp, 8
test al, al
je 0x45989c
mov ecx, dword [ebp - 0x1c]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 4
jb 0x4598da
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 4
cmovae eax, dword [ebp - 0x2c]
push str..old
push ecx
push eax
push ecx
push dword [ebp - 0xec]
lea ecx, [ebp - 0x50]
call fcn.0040a4c0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x50]
cmp dword [ebp - 0x3c], 8
mov ecx, esi
push dword [ebp - 0x40]
cmovae eax, dword [ebp - 0x50]
push eax
call fcn.00459090
add esp, 8
test al, al
jne 0x459894
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x45950d
mov eax, dword [edi]
mov ecx, dword [ebp - 0xe4]
push dword [ecx]
lea ecx, [ebp - 0xb0]
push eax
call fcn.00487ce0
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 6
push ecx
mov edx, eax
lea ecx, [ebp - 0xc8]
call fcn.00449990
add esp, 0xc
lea ecx, [ebp - 0xb0]
call fcn.0040ab30
cmp dword [ebp - 0xb4], 8
lea eax, [ebp - 0xc8]
push 0
cmovae eax, dword [ebp - 0xc8]
push 0
push 3
push 0
push 7
push 0x10000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x34], esi
mov byte [ebp - 4], 9
cmp esi, 0xffffffff
jne 0x459615
mov ecx, dword [ebp - 0xe8]
call fcn.00459270
test al, al
jne 0x459889
cmp dword [ebp - 0x54], 8
lea edx, [ebp - 0x68]
xorps xmm0, xmm0
mov dword [ebp - 0xd0], 0
cmovae edx, dword [ebp - 0x68]
mov ecx, edx
mov dword [ebp - 0xcc], 0
movups xmmword [ebp - 0xe0], xmm0
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4595c1
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xe0]
call fcn.0040aa50
cmp dword [ebp - 0xd0], 0
je 0x459605
cmp dword [ebp - 0xcc], 8
lea eax, [ebp - 0xe0]
push 4
cmovae eax, dword [ebp - 0xe0]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0xe0]
call fcn.0040ab30
jmp 0x459889
call fcn.0048f6a0
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x80]
mov dword [ebp - 0xf8], eax
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
mov dword [ebp - 0xec], eax
lea eax, [ebp - 0xf8]
push eax
lea eax, [ebp - 0xec]
mov dword [ebp - 0xf4], edx
push eax
mov edx, str._s.to_delete._016llx
call fcn.00416cb0
add esp, 8
mov byte [ebp - 4], 0xe
cmp dword [edi + 0x14], 8
jb 0x459661
mov edi, dword [edi]
mov eax, dword [ebp - 0xe4]
lea ecx, [ebp - 0x110]
push dword [eax]
push edi
call fcn.00487ce0
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0xf
push ecx
mov edx, eax
lea ecx, [ebp - 0xb0]
call fcn.00449990
add esp, 0xc
lea ecx, [ebp - 0x110]
mov byte [ebp - 4], 0x11
call fcn.0040ab30
cmp dword [ebp - 0x6c], 8
lea eax, [ebp - 0x80]
push dword [ebp - 0x70]
cmovae eax, dword [ebp - 0x80]
mov ecx, esi
push eax
call fcn.00459090
add esp, 8
test al, al
je 0x4597de
mov ecx, esi
call fcn.00459270
test al, al
jne 0x459756
cmp dword [ebp - 0x9c], 8
lea edx, [ebp - 0xb0]
xorps xmm0, xmm0
mov dword [ebp - 0xd0], 0
cmovae edx, dword [ebp - 0xb0]
mov ecx, edx
mov dword [ebp - 0xcc], 0
movups xmmword [ebp - 0xe0], xmm0
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x459703
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xe0]
call fcn.0040aa50
cmp dword [ebp - 0xd0], 0
je 0x459747
cmp dword [ebp - 0xcc], 8
lea eax, [ebp - 0xe0]
push 4
cmovae eax, dword [ebp - 0xe0]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 0x11
call fcn.0040ab30
cmp dword [ebp - 0x3c], 8
lea eax, [ebp - 0x50]
push dword [ebp - 0x40]
cmovae eax, dword [ebp - 0x50]
mov edi, dword [ebp - 0xe8]
mov ecx, edi
push eax
call fcn.00459090
add esp, 8
test al, al
jne 0x45986f
mov ecx, edi
call fcn.00459270
test al, al
jne 0x45986f
cmp dword [ebp - 0x54], 8
lea edx, [ebp - 0x68]
xorps xmm0, xmm0
mov dword [ebp - 0xd0], 0
cmovae edx, dword [ebp - 0x68]
mov ecx, edx
mov dword [ebp - 0xcc], 0
movups xmmword [ebp - 0xe0], xmm0
lea edi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4597c0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xe0]
call fcn.0040aa50
jmp 0x45983c
mov ecx, dword [ebp - 0xe8]
call fcn.00459270
test al, al
jne 0x45986f
cmp dword [ebp - 0x54], 8
lea edx, [ebp - 0x68]
xorps xmm0, xmm0
mov dword [ebp - 0xd0], 0
cmovae edx, dword [ebp - 0x68]
mov ecx, edx
mov dword [ebp - 0xcc], 0
movups xmmword [ebp - 0xe0], xmm0
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x459820
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xe0]
call fcn.0040aa50
cmp dword [ebp - 0xd0], 0
je 0x459864
cmp dword [ebp - 0xcc], 8
lea eax, [ebp - 0xe0]
push 4
cmovae eax, dword [ebp - 0xe0]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0xe0]
call fcn.0040ab30
lea ecx, [ebp - 0xb0]
call fcn.0040ab30
lea ecx, [ebp - 0x80]
call fcn.0040ab30
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0xc8]
call fcn.0040ab30
lea ecx, [ebp - 0x50]
call fcn.0040ab30
lea ecx, [ebp - 0x68]
call fcn.0040ab30
lea ecx, [ebp - 0x98]
call fcn.0040ab30
lea ecx, [ebp - 0x2c]
call fcn.0040ab30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a4c5b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0040cc20
call fcn.0040a8d0
int3