Function at 0x4d1968
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0x12], cl
mov byte [ebp - 0x11], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405b5c
xor eax, eax
push ebp
push 0x4d1c78
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x19], 1
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.0040a1c4
mov eax, dword [ebp - 0x28]
mov edx, 0x4d1c90
call fcn.00405b04
jne 0x4d19f0
movzx eax, byte [ebp - 0x11]
mov byte [0x4fb2c5], al
mov eax, 0x4fb2c8
mov edx, 0x4d1c90
call fcn.00405730
cmp byte [0x4fb2c4], 0
je 0x4d1c50
mov bl, 1
jmp 0x4d1c50
cmp byte [0x4fb2c4], 0
je 0x4d1a1b
movzx eax, byte [ebp - 0x11]
cmp al, byte [0x4fb2c5]
jne 0x4d1a1b
mov eax, dword [0x4fb2c8]
mov edx, dword [ebp - 4]
call fcn.00405b04
jne 0x4d1a1b
mov bl, 1
jmp 0x4d1c50
call fcn.004d0c08
test al, al
je 0x4d1c50
xor eax, eax
push ebp
push 0x4d1c45
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
call fcn.004d0d48
test al, al
jne 0x4d1a4c
call fcn.00405100
jmp 0x4d1c50
lea eax, [ebp - 0x20]
push eax
movzx ecx, byte [ebp - 0x11]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
call fcn.004d128c
test eax, eax
jge 0x4d1bc9
cmp byte [ebp - 0x12], 0
je 0x4d1bbf
cmp byte [0x4fb2c4], 0
je 0x4d1b7d
xor eax, eax
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x4d1b76
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x42add8]
call fcn.0042af54
mov dword [ebp - 0x24], eax
cmp byte [ebp - 0x11], 0
je 0x4d1acb
call fcn.004bd828
sub al, 2
jb 0x4d1acb
mov edx, 0x80000002
mov eax, dword [ebp - 0x24]
call fcn.0042b000
lea eax, [ebp - 0xc]
mov edx, 0x4d1ca0
call fcn.00405774
jmp 0x4d1ae5
mov edx, 0x80000001
mov eax, dword [ebp - 0x24]
call fcn.0042b000
lea eax, [ebp - 0xc]
mov edx, 0x4d1cb8
call fcn.00405774
xor ecx, ecx
mov edx, 0x4d1ccc
mov eax, dword [ebp - 0x24]
call fcn.0042b070
test al, al
je 0x4d1b5c
lea eax, [ebp - 8]
call fcn.004056dc
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x24]
call fcn.0042b938
test al, al
je 0x4d1b1d
lea ecx, [ebp - 8]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x24]
call fcn.0042b730
cmp dword [ebp - 8], 0
je 0x4d1b4e
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.004bdd24
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 8]
call fcn.00405774
mov eax, dword [ebp - 8]
call fcn.0040b460
test al, al
jne 0x4d1b52
mov byte [ebp - 0x19], 0
jmp 0x4d1b52
mov byte [ebp - 0x19], 0
mov eax, dword [ebp - 0x24]
call fcn.0042afcc
jmp 0x4d1b60
mov byte [ebp - 0x19], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d1bc9
mov eax, dword [ebp - 0x24]
call fcn.004047a0
ret
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
movzx eax, byte [ebp - 0x11]
call fcn.004d127c
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0
lea edx, [ebp - 0x3c]
mov ecx, 1
mov eax, 0x4d1d18
call fcn.0040bbec
mov eax, dword [ebp - 0x10]
call fcn.004d18f0
test al, al
jne 0x4d1bc9
mov byte [ebp - 0x19], 0
jmp 0x4d1bc9
call fcn.00405100
jmp 0x4d1c50
cmp byte [0x4fb2c4], 0
je 0x4d1bea
movzx eax, byte [ebp - 0x11]
mov byte [0x4fb2c5], al
mov eax, 0x4fb2c8
mov edx, dword [ebp - 4]
call fcn.00405730
jmp 0x4d1c2a
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
movzx eax, byte [ebp - 0x11]
call fcn.004d127c
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0
lea edx, [ebp - 0x3c]
mov ecx, 1
mov eax, 0x4d1d38
call fcn.0040bbec
mov eax, dword [ebp - 0x10]
call fcn.004d18f0
test al, al
jne 0x4d1c2a
mov byte [ebp - 0x19], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d1c4c
call fcn.004d0c80
mov eax, dword [ebp - 0x18]
call fcn.004047a0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d1c7f
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.00405700
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00405700
ret