Function at 0x4b1770
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51861b
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 0x4b1c8e
lea eax, [ebp - 0x28]
push 5
push eax
call fcn.004b43e0
mov ecx, dword [0x5580c0]
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.004d41c8
mov ecx, dword [0x5580c0]
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.004d41c8
mov ecx, dword [0x5580c0]
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.004d41c8
add esp, 0xc
lea ecx, [ebp - 0x40]
call fcn.004de4bb
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 4
call fcn.004ddaca
mov ecx, dword [0x5580c0]
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.004dd5d6
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.004de66d
test eax, eax
jne 0x4b18c2
lea ecx, [ebp - 0x14]
push 9
push ecx
call fcn.0042e360
add esp, 8
mov eax, dword [eax]
push esi
push 4
push eax
mov byte [ebp - 4], 8
call fcn.004e57ca
cmp eax, 6
lea ecx, [ebp - 0x14]
setne bl
mov byte [ebp - 4], 7
call fcn.004dd44d
test bl, bl
jne 0x4b1972
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x54]
push edx
push 0x1011
push eax
lea ecx, [ebp - 0x40]
call fcn.004de66d
test eax, eax
je 0x4b1872
push 0x1000
lea ecx, [ebp - 0x7c]
call fcn.004e94c4
push esi
push 0x1000
lea ecx, [ebp - 0x7c]
push esi
push ecx
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 0xa
call fcn.004e1bcc
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.004e1d30
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 0x4b1995
lea edx, [ebx + 1]
push edx
call fcn.004dda96
add esp, 4
mov ecx, esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x30], eax
push ebx
call fcn.004dd87d
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.004b4680
test eax, eax
je 0x4b1982
mov eax, dword [ebp - 0x18]
push 8
push eax
jmp 0x4b1987
mov dword [ebp - 0x54], vtable.CFileException.0
mov byte [ebp - 4], 9
jmp 0x4b1c47
mov ecx, dword [ebp - 0x18]
push ebx
push ecx
call fcn.0040ff30
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x24]
add esp, 8
lea ecx, [ebp - 0x7c]
call fcn.004de967
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 0x4b19f9
push ebx
call fcn.004dda96
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.004e96e7
push edi
call fcn.004ddabf
mov edi, dword [ebp - 0x24]
add esp, 4
lea ecx, [ebp - 0x7c]
call fcn.004e9577
mov ecx, dword [esi]
mov dword [ebp - 0x24], eax
mov edx, dword [ecx - 8]
test edx, edx
je 0x4b1a22
mov edx, dword [ebp - 0x18]
lea ecx, [ebx + edx]
push ecx
push eax
call fcn.0040f4a0
add esp, 8
call fcn.0040ff10
mov edx, dword [esi]
mov byte [ebp - 4], 0x10
push 1
mov eax, dword [edx - 8]
test eax, eax
jne 0x4b1a40
push 0x553d6c
lea ecx, [ebp - 0x40]
call fcn.004de7c4
jmp 0x4b1a7e
push 0x552588
lea ecx, [ebp - 0x40]
call fcn.004de7c4
push 0x18
call fcn.004dda96
add esp, 4
mov ecx, edi
mov dword [ebp - 0x14], eax
push 1
push eax
call fcn.004b3da0
mov eax, dword [ebp - 0x14]
push 0x18
push eax
lea ecx, [ebp - 0x40]
call fcn.004de7c4
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004ddabf
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.004de7c4
push ebx
mov dword [ebp - 4], 0xb
call fcn.004c30a2
add esp, 4
lea ecx, [ebp - 0x40]
call fcn.004de888
lea eax, [ebp - 0x18]
push 0x15d
push eax
call fcn.0042e360
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.004dd6e2
mov eax, dword [eax]
mov ecx, edi
push eax
push reloc.WSOCK32.dll_accept
mov byte [ebp - 4], 0x15
call fcn.004b2820
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.004dd44d
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xb
call fcn.004dd44d
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 0x4b1b2c
mov edx, dword [ebp - 0x1c]
push edx
call ebx
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x4b1b3c
push eax
call fcn.004ddabf
add esp, 4
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 0xa
call fcn.004e1ca8
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 7
call fcn.004e9589
mov dword [ebp - 0x54], vtable.CFileException.0
mov byte [ebp - 4], 0x16
jmp 0x4b1c47
lea ecx, [ebp - 0x44]
call fcn.004dd44d
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.004de5b0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.004dd44d
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.004dd44d
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.004dd44d
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.004dd44d
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret