Function at 0x4d1e20
Capabilities:
Delete file
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x4d1e28
push ebx
mov byte [ebp - 0x15], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405b5c
xor eax, eax
push ebp
push 0x4d20cf
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call fcn.004d076c
test al, al
je 0x4d20a7
xor eax, eax
push ebp
push 0x4d209e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x4f92c4], 0
je 0x4d204e
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x4d2047
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x42add8]
call fcn.0042af54
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 8]
mov edx, dword [0x4f92c8]
call fcn.00405774
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 8]
call fcn.0040a1c4
mov eax, dword [ebp - 0x20]
mov edx, 0x4d20e8
call fcn.00405b04
jne 0x4d1ecc
mov byte [ebp - 0x15], 1
lea eax, [ebp - 8]
call fcn.004056dc
mov edx, dword [ebp - 4]
mov eax, 0x4d20f8
call fcn.00405cb8
test eax, eax
jne 0x4d1ffd
cmp byte [ebp - 0x15], 0
je 0x4d1f0b
mov edx, 0x80000001
mov eax, dword [ebp - 0x1c]
call fcn.0042b000
lea eax, [ebp - 0x10]
mov edx, 0x4d2104
call fcn.00405774
lea eax, [ebp - 8]
call fcn.004056dc
jmp 0x4d1f53
cmp byte [0x4f92c5], 0
je 0x4d1f39
call fcn.004bd7fc
sub al, 2
jb 0x4d1f39
mov edx, 0x80000002
mov eax, dword [ebp - 0x1c]
call fcn.0042b000
lea eax, [ebp - 0x10]
mov edx, 0x4d2114
call fcn.00405774
jmp 0x4d1f53
mov edx, 0x80000001
mov eax, dword [ebp - 0x1c]
call fcn.0042b000
lea eax, [ebp - 0x10]
mov edx, 0x4d212c
call fcn.00405774
xor ecx, ecx
mov edx, 0x4d2140
mov eax, dword [ebp - 0x1c]
call fcn.0042b070
test al, al
je 0x4d2031
lea eax, [ebp - 0xc]
call fcn.004056dc
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
call fcn.0042b938
test al, al
je 0x4d1f8f
lea ecx, [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
call fcn.0042b730
cmp dword [ebp - 0xc], 0
je 0x4d1ff3
lea ecx, [ebp - 0x24]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.004bdcb8
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0xc]
call fcn.00405774
lea ecx, [ebp - 0x28]
mov edx, 0x4d218c
mov eax, dword [ebp - 4]
call fcn.0040b150
mov edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.004bdcb8
mov eax, dword [ebp - 0x14]
call fcn.00405b6c
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4d1ff3
call fcn.00405100
call fcn.00405100
jmp 0x4d20a7
mov eax, dword [ebp - 0x1c]
call fcn.0042afcc
jmp 0x4d2031
lea ecx, [ebp - 0x14]
mov edx, 0x4d218c
mov eax, dword [ebp - 4]
call fcn.0040b150
mov eax, dword [ebp - 0x14]
call fcn.00405b6c
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4d2031
call fcn.00405100
call fcn.00405100
jmp 0x4d20a7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d208b
mov eax, dword [ebp - 0x1c]
call fcn.004047a0
ret
cmp byte [ebp - 0x15], 0
jne 0x4d2084
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0xb
lea edx, [ebp - 0x30]
xor ecx, ecx
mov eax, 0x4d219c
call fcn.0040bbec
mov eax, dword [ebp - 0x14]
call fcn.004d1454
test al, al
jne 0x4d208b
call fcn.00405100
jmp 0x4d20a7
call fcn.00405100
jmp 0x4d20a7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d20a5
call fcn.004d07e4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d20d6
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.00405700
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00405700
ret