Function at 0x4b13e0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5182ab
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 0x4b18fe
lea eax, [ebp - 0x28]
push 5
push eax
call fcn.004b4090
mov ecx, dword [0x5580a0]
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.004d3e8c
mov ecx, dword [0x5580a0]
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.004d3e8c
mov ecx, dword [0x5580a0]
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.004d3e8c
add esp, 0xc
lea ecx, [ebp - 0x40]
call fcn.004de17f
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 4
call fcn.004dd78e
mov ecx, dword [0x5580a0]
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.004dd29a
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.004de331
test eax, eax
jne 0x4b1532
lea ecx, [ebp - 0x14]
push 9
push ecx
call fcn.0042e100
add esp, 8
mov eax, dword [eax]
push esi
push 4
push eax
mov byte [ebp - 4], 8
call fcn.004e548e
cmp eax, 6
lea ecx, [ebp - 0x14]
setne bl
mov byte [ebp - 4], 7
call fcn.004dd111
test bl, bl
jne 0x4b15e2
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x54]
push edx
push 0x1011
push eax
lea ecx, [ebp - 0x40]
call fcn.004de331
test eax, eax
je 0x4b14e2
push 0x1000
lea ecx, [ebp - 0x7c]
call fcn.004e918d
push esi
push 0x1000
lea ecx, [ebp - 0x7c]
push esi
push ecx
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 0xa
call fcn.004e1890
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.004e19f4
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 0x4b1605
lea edx, [ebx + 1]
push edx
call fcn.004dd75a
add esp, 4
mov ecx, esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x30], eax
push ebx
call fcn.004dd541
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.004b4330
test eax, eax
je 0x4b15f2
mov eax, dword [ebp - 0x18]
push 8
push eax
jmp 0x4b15f7
mov dword [ebp - 0x54], vtable.CFileException.0
mov byte [ebp - 4], 9
jmp 0x4b18b7
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.004de62b
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 0x4b1669
push ebx
call fcn.004dd75a
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.004e93b0
push edi
call fcn.004dd783
mov edi, dword [ebp - 0x24]
add esp, 4
lea ecx, [ebp - 0x7c]
call fcn.004e9240
mov ecx, dword [esi]
mov dword [ebp - 0x24], eax
mov edx, dword [ecx - 8]
test edx, edx
je 0x4b1692
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 0x4b16b0
push 0x553d6c
lea ecx, [ebp - 0x40]
call fcn.004de488
jmp 0x4b16ee
push 0x552588
lea ecx, [ebp - 0x40]
call fcn.004de488
push 0x18
call fcn.004dd75a
add esp, 4
mov ecx, edi
mov dword [ebp - 0x14], eax
push 1
push eax
call fcn.004b3a50
mov eax, dword [ebp - 0x14]
push 0x18
push eax
lea ecx, [ebp - 0x40]
call fcn.004de488
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004dd783
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.004de488
push ebx
mov dword [ebp - 4], 0xb
call fcn.004c2d72
add esp, 4
lea ecx, [ebp - 0x40]
call fcn.004de54c
lea eax, [ebp - 0x18]
push 0x15d
push eax
call fcn.0042e100
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.004dd3a6
mov eax, dword [eax]
mov ecx, edi
push eax
push reloc.WSOCK32.dll_accept
mov byte [ebp - 4], 0x15
call fcn.004b24d0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.004dd111
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xb
call fcn.004dd111
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 0x4b179c
mov edx, dword [ebp - 0x1c]
push edx
call ebx
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x4b17ac
push eax
call fcn.004dd783
add esp, 4
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 0xa
call fcn.004e196c
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 7
call fcn.004e9252
mov dword [ebp - 0x54], vtable.CFileException.0
mov byte [ebp - 4], 0x16
jmp 0x4b18b7
lea ecx, [ebp - 0x44]
call fcn.004dd111
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.004de274
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.004dd111
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.004dd111
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.004dd111
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.004dd111
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret