Function at 0x4183b0
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 0x4cfe1b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xf8
mov eax, dword [0x5080f4]
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.00417ed0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
cmp eax, 4
jb 0x41896f
lea ecx, [eax - 4]
cmp eax, ecx
jb 0x418995
sub eax, ecx
mov edx, 4
cmp eax, edx
cmovb edx, eax
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
mov dword [ebp - 0xcc], edx
cmovae eax, dword [ebp - 0x2c]
cmp edx, 4
lea ecx, [eax + ecx*2]
mov eax, edx
mov edx, 4
cmova eax, edx
mov edx, str..log
push eax
call fcn.0040eee0
add esp, 4
test eax, eax
jne 0x41896f
mov eax, dword [ebp - 0xcc]
cmp eax, 4
jae 0x418476
or eax, 0xffffffff
jmp 0x418481
mov ecx, 4
cmp ecx, eax
sbb eax, eax
neg eax
test eax, eax
jne 0x41896f
call fcn.0043aca0
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 - 0xcc], eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0xcc]
mov dword [ebp - 0x34], edx
push eax
mov edx, str._s.to_rotate._016llx
call fcn.0041b2b0
add esp, 8
mov byte [ebp - 4], 1
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x4184d1
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0xc8]
push eax
call fcn.00435e20
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 2
push ecx
mov edx, eax
lea ecx, [ebp - 0x68]
call fcn.0041b330
add esp, 0xc
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 4
call fcn.004127e0
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.00418100
add esp, 8
test al, al
je 0x41895c
mov ecx, dword [ebp - 0x1c]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 4
jb 0x41899a
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 - 0xcc]
lea ecx, [ebp - 0x50]
call fcn.00413420
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.00418100
add esp, 8
test al, al
jne 0x418954
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x418599
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0xb0]
push eax
call fcn.00435e20
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 6
push ecx
mov edx, eax
lea ecx, [ebp - 0xc8]
call fcn.0041b330
add esp, 0xc
lea ecx, [ebp - 0xb0]
call fcn.004127e0
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 0x4186b0
mov ecx, dword [ebp - 0xe8]
call fcn.004182d0
test al, al
jne 0x418949
cmp dword [ebp - 0x54], 8
lea edx, [ebp - 0x68]
mov dword [ebp - 0xe4], 0
cmovae edx, dword [ebp - 0x68]
mov ecx, edx
mov dword [ebp - 0xd4], 0
xor eax, eax
mov dword [ebp - 0xd0], 7
mov word [ebp - 0xe4], ax
mov byte [ebp - 4], 9
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418655
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xe4]
call fcn.004123e0
cmp dword [ebp - 0xd4], 0
je 0x4186a0
cmp dword [ebp - 0xd0], 8
lea eax, [ebp - 0xe4]
push 4
cmovae eax, dword [ebp - 0xe4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
nop dword [eax]
lea ecx, [ebp - 0xe4]
call fcn.004127e0
jmp 0x418949
call fcn.0043aca0
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x80]
mov dword [ebp - 0xf0], eax
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
mov dword [ebp - 0xcc], eax
lea eax, [ebp - 0xf0]
push eax
lea eax, [ebp - 0xcc]
mov dword [ebp - 0xec], edx
push eax
mov edx, str._s.to_delete._016llx
call fcn.0041b2b0
add esp, 8
mov byte [ebp - 4], 0x10
cmp dword [edi + 0x14], 8
mov eax, dword [edi + 0x10]
jb 0x4186ff
mov edi, dword [edi]
push eax
push edi
lea ecx, [ebp - 0x108]
call fcn.00435e20
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x11
push ecx
mov edx, eax
lea ecx, [ebp - 0xb0]
call fcn.0041b330
add esp, 0xc
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 0x13
call fcn.004127e0
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.00418100
add esp, 8
test al, al
je 0x41888e
mov ecx, esi
call fcn.004182d0
test al, al
jne 0x4187ff
cmp dword [ebp - 0x9c], 8
lea edx, [ebp - 0xb0]
mov dword [ebp - 0xe4], 0
cmovae edx, dword [ebp - 0xb0]
mov ecx, edx
mov dword [ebp - 0xd4], 0
xor eax, eax
mov dword [ebp - 0xd0], 7
mov word [ebp - 0xe4], ax
mov byte [ebp - 4], 0x13
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4187a7
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xe4]
call fcn.004123e0
cmp dword [ebp - 0xd4], 0
je 0x4187f0
cmp dword [ebp - 0xd0], 8
lea eax, [ebp - 0xe4]
push 4
cmovae eax, dword [ebp - 0xe4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
nop dword [eax + eax]
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 0x13
call fcn.004127e0
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.00418100
add esp, 8
test al, al
jne 0x41892f
mov ecx, edi
call fcn.004182d0
test al, al
jne 0x41892f
cmp dword [ebp - 0x54], 8
lea edx, [ebp - 0x68]
mov dword [ebp - 0xe4], 0
cmovae edx, dword [ebp - 0x68]
mov ecx, edx
mov dword [ebp - 0xd4], 0
xor eax, eax
mov dword [ebp - 0xd0], 7
mov word [ebp - 0xe4], ax
mov byte [ebp - 4], 0x13
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418870
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xe4]
call fcn.004123e0
jmp 0x4188fc
mov ecx, dword [ebp - 0xe8]
call fcn.004182d0
test al, al
jne 0x41892f
cmp dword [ebp - 0x54], 8
lea edx, [ebp - 0x68]
mov dword [ebp - 0xe4], 0
cmovae edx, dword [ebp - 0x68]
mov ecx, edx
mov dword [ebp - 0xd4], 0
xor eax, eax
mov dword [ebp - 0xd0], 7
mov word [ebp - 0xe4], ax
mov byte [ebp - 4], 0x13
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4188e0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xe4]
call fcn.004123e0
cmp dword [ebp - 0xd4], 0
je 0x418924
cmp dword [ebp - 0xd0], 8
lea eax, [ebp - 0xe4]
push 4
cmovae eax, dword [ebp - 0xe4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0xe4]
call fcn.004127e0
lea ecx, [ebp - 0xb0]
call fcn.004127e0
lea ecx, [ebp - 0x80]
call fcn.004127e0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0xc8]
call fcn.004127e0
lea ecx, [ebp - 0x50]
call fcn.004127e0
lea ecx, [ebp - 0x68]
call fcn.004127e0
lea ecx, [ebp - 0x98]
call fcn.004127e0
lea ecx, [ebp - 0x2c]
call fcn.004127e0
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.00484d55
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0040efd0
call fcn.004123d0
int3