Function at 0x4b1420
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5182eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb4
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x10], esp
mov eax, dword [edi + 0x30]
mov dword [ebp - 0x24], edi
cmp eax, esi
jne 0x4b193e
lea eax, [ebp - 0x28]
push 5
push eax
call fcn.004b40d0
mov ecx, dword [0x5581a0]
mov dword [ebp - 4], esi
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x20]
push edx
push str._s_sm.___
push eax
mov byte [ebp - 4], 1
call fcn.004d3ecc
mov ecx, dword [0x5581a0]
add esp, 0xc
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x2c]
push edx
push str._s_sm.dat
push eax
mov byte [ebp - 4], 2
call fcn.004d3ecc
mov ecx, dword [0x5581a0]
add esp, 0xc
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x1c]
push edx
push str._s_sm.bak
push eax
mov byte [ebp - 4], 3
call fcn.004d3ecc
add esp, 0xc
lea ecx, [ebp - 0x40]
call fcn.004de1bf
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 4
call fcn.004dd7ce
mov ecx, dword [0x5581a0]
mov dword [ebp - 0x44], ecx
push esi
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 6
mov dword [ebp - 0x54], vtable.CFileException.0
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], 0xffffffff
call fcn.004dd2da
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x54]
push edx
push 0x1011
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 7
call fcn.004de371
test eax, eax
jne 0x4b1572
lea ecx, [ebp - 0x14]
push 9
push ecx
call fcn.0042e120
add esp, 8
mov eax, dword [eax]
push esi
push 4
push eax
mov byte [ebp - 4], 8
call fcn.004e54ce
cmp eax, 6
lea ecx, [ebp - 0x14]
setne bl
mov byte [ebp - 4], 7
call fcn.004dd151
test bl, bl
jne 0x4b1622
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x54]
push edx
push 0x1011
push eax
lea ecx, [ebp - 0x40]
call fcn.004de371
test eax, eax
je 0x4b1522
push 0x1000
lea ecx, [ebp - 0x7c]
call fcn.004e91cd
push esi
push 0x1000
lea ecx, [ebp - 0x7c]
push esi
push ecx
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 0xa
call fcn.004e18d0
mov edx, dword [edi]
lea eax, [ebp - 0xc0]
push eax
mov ecx, edi
mov byte [ebp - 4], 0xc
call dword [edx + 8]
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], 0xb
call fcn.004e1a34
mov ecx, dword [edi + 0x2c]
mov dword [ebp - 0x30], esi
lea esi, [edi + 0x2c]
mov ebx, dword [ecx - 8]
mov dword [ebp - 0x14], esi
test ebx, ebx
je 0x4b1645
lea edx, [ebx + 1]
push edx
call fcn.004dd79a
add esp, 4
mov ecx, esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x30], eax
push ebx
call fcn.004dd581
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
mov eax, dword [ebp - 0x18]
not ecx
sub edi, ecx
push eax
mov edx, ecx
mov esi, edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x24]
call fcn.004b4370
test eax, eax
je 0x4b1632
mov eax, dword [ebp - 0x18]
push 8
push eax
jmp 0x4b1637
mov dword [ebp - 0x54], vtable.CFileException.0
mov byte [ebp - 4], 9
jmp 0x4b18f7
mov ecx, dword [ebp - 0x18]
push ebx
push ecx
call fcn.0040ff70
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x24]
add esp, 8
lea ecx, [ebp - 0x7c]
call fcn.004de66b
mov edx, dword [ebp - 0x7c]
mov ebx, eax
push 2
push 0
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x18], ebx
call dword [edx + 0x28]
mov eax, dword [ebp - 0x18]
shr ebx, 3
lea ebx, [ebx*8 + 8]
sub ebx, eax
je 0x4b16a9
push ebx
call fcn.004dd79a
mov ecx, ebx
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebp - 0x14], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
push ebx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [ebp - 0x14]
lea ecx, [ebp - 0x7c]
push edi
call fcn.004e93f0
push edi
call fcn.004dd7c3
mov edi, dword [ebp - 0x24]
add esp, 4
lea ecx, [ebp - 0x7c]
call fcn.004e9280
mov ecx, dword [esi]
mov dword [ebp - 0x24], eax
mov edx, dword [ecx - 8]
test edx, edx
je 0x4b16d2
mov edx, dword [ebp - 0x18]
lea ecx, [ebx + edx]
push ecx
push eax
call fcn.0040f4e0
add esp, 8
call fcn.0040ff50
mov edx, dword [esi]
mov byte [ebp - 4], 0x10
push 1
mov eax, dword [edx - 8]
test eax, eax
jne 0x4b16f0
push 0x553d6c
lea ecx, [ebp - 0x40]
call fcn.004de4c8
jmp 0x4b172e
push 0x552588
lea ecx, [ebp - 0x40]
call fcn.004de4c8
push 0x18
call fcn.004dd79a
add esp, 4
mov ecx, edi
mov dword [ebp - 0x14], eax
push 1
push eax
call fcn.004b3a90
mov eax, dword [ebp - 0x14]
push 0x18
push eax
lea ecx, [ebp - 0x40]
call fcn.004de4c8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004dd7c3
add esp, 4
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x40]
add ebx, edx
push ebx
mov ebx, dword [ebp - 0x24]
push ebx
call fcn.004de4c8
push ebx
mov dword [ebp - 4], 0xb
call fcn.004c2db2
add esp, 4
lea ecx, [ebp - 0x40]
call fcn.004de58c
lea eax, [ebp - 0x18]
push 0x15d
push eax
call fcn.0042e120
add esp, 8
push str.Shell_Integration
lea ecx, [ebp - 0x14]
mov bl, 0x14
push eax
push ecx
mov byte [ebp - 4], bl
call fcn.004dd3e6
mov eax, dword [eax]
mov ecx, edi
push eax
push reloc.WSOCK32.dll_accept
mov byte [ebp - 4], 0x15
call fcn.004b2510
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.004dd151
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xb
call fcn.004dd151
mov edx, dword [ebp - 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edx
call ebx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x2c]
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileA]
push eax
push ecx
call edi
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x20]
push edx
push eax
call edi
mov ecx, dword [esi]
mov eax, dword [ecx - 8]
test eax, eax
je 0x4b17dc
mov edx, dword [ebp - 0x1c]
push edx
call ebx
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x4b17ec
push eax
call fcn.004dd7c3
add esp, 4
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 0xa
call fcn.004e19ac
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 7
call fcn.004e9292
mov dword [ebp - 0x54], vtable.CFileException.0
mov byte [ebp - 4], 0x16
jmp 0x4b18f7
lea ecx, [ebp - 0x44]
call fcn.004dd151
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.004de2b4
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.004dd151
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.004dd151
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.004dd151
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.004dd151
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret