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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x4d22c4
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 0x4d256b
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call fcn.004d0c08
test al, al
je 0x4d2543
xor eax, eax
push ebp
push 0x4d253a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x4fb2c4], 0
je 0x4d24ea
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x4d24e3
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 [0x4fb2c8]
call fcn.00405774
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 8]
call fcn.0040a1c4
mov eax, dword [ebp - 0x20]
mov edx, 0x4d2584
call fcn.00405b04
jne 0x4d2368
mov byte [ebp - 0x15], 1
lea eax, [ebp - 8]
call fcn.004056dc
mov edx, dword [ebp - 4]
mov eax, 0x4d2594
call fcn.00405cb8
test eax, eax
jne 0x4d2499
cmp byte [ebp - 0x15], 0
je 0x4d23a7
mov edx, 0x80000001
mov eax, dword [ebp - 0x1c]
call fcn.0042b000
lea eax, [ebp - 0x10]
mov edx, 0x4d25a0
call fcn.00405774
lea eax, [ebp - 8]
call fcn.004056dc
jmp 0x4d23ef
cmp byte [0x4fb2c5], 0
je 0x4d23d5
call fcn.004bd828
sub al, 2
jb 0x4d23d5
mov edx, 0x80000002
mov eax, dword [ebp - 0x1c]
call fcn.0042b000
lea eax, [ebp - 0x10]
mov edx, 0x4d25b0
call fcn.00405774
jmp 0x4d23ef
mov edx, 0x80000001
mov eax, dword [ebp - 0x1c]
call fcn.0042b000
lea eax, [ebp - 0x10]
mov edx, 0x4d25c8
call fcn.00405774
xor ecx, ecx
mov edx, 0x4d25dc
mov eax, dword [ebp - 0x1c]
call fcn.0042b070
test al, al
je 0x4d24cd
lea eax, [ebp - 0xc]
call fcn.004056dc
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
call fcn.0042b938
test al, al
je 0x4d242b
lea ecx, [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
call fcn.0042b730
cmp dword [ebp - 0xc], 0
je 0x4d248f
lea ecx, [ebp - 0x24]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.004bdd24
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0xc]
call fcn.00405774
lea ecx, [ebp - 0x28]
mov edx, 0x4d2628
mov eax, dword [ebp - 4]
call fcn.0040b150
mov edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.004bdd24
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 0x4d248f
call fcn.00405100
call fcn.00405100
jmp 0x4d2543
mov eax, dword [ebp - 0x1c]
call fcn.0042afcc
jmp 0x4d24cd
lea ecx, [ebp - 0x14]
mov edx, 0x4d2628
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 0x4d24cd
call fcn.00405100
call fcn.00405100
jmp 0x4d2543
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d2527
mov eax, dword [ebp - 0x1c]
call fcn.004047a0
ret
cmp byte [ebp - 0x15], 0
jne 0x4d2520
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, 0x4d2638
call fcn.0040bbec
mov eax, dword [ebp - 0x14]
call fcn.004d18f0
test al, al
jne 0x4d2527
call fcn.00405100
jmp 0x4d2543
call fcn.00405100
jmp 0x4d2543
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d2541
call fcn.004d0c80
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d2572
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.00405700
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00405700
ret