Function at 0x4d128c
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x36
push 0
push 0
dec ecx
jne 0x4d1295
xchg dword [ebp - 4], ecx
push ebx
push esi
mov byte [ebp - 0x175], cl
mov dword [ebp - 4], edx
mov dword [ebp - 0x174], eax
mov eax, dword [ebp - 4]
call fcn.00405b5c
lea eax, [ebp - 0x170]
mov edx, dword [0x4090e4]
call fcn.0040649c
xor eax, eax
push ebp
push 0x4d1833
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x17c], 0xffffffff
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
cmp dword [ebp - 0x174], 0
je 0x4d17f7
lea edx, [ebp - 0x194]
mov eax, dword [ebp - 4]
call fcn.0040a1c4
mov edx, dword [ebp - 0x194]
lea eax, [ebp - 4]
call fcn.00405774
mov eax, dword [ebp - 0x174]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4d17ed
inc eax
mov dword [ebp - 0x190], eax
mov dword [ebp - 0x180], 0
lea ecx, [ebp - 0x19c]
mov edx, dword [ebp - 0x180]
mov eax, dword [ebp - 0x174]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x19c]
lea edx, [ebp - 0x198]
call fcn.0040a1c4
mov eax, dword [ebp - 0x198]
mov edx, dword [ebp - 4]
call fcn.00405b04
jne 0x4d17db
mov eax, dword [ebp - 0x180]
mov dword [ebp - 0x17c], eax
cmp byte [0x4fb2c4], 0
je 0x4d1589
mov edx, dword [ebp - 0x180]
mov eax, dword [ebp - 0x174]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov dword [ebp - 0x184], eax
xor eax, eax
mov dword [ebp - 0x18c], eax
xor eax, eax
push ebp
push 0x4d1542
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x42add8]
call fcn.0042af54
mov dword [ebp - 0x18c], eax
cmp dword [ebp - 0x184], 0
jne 0x4d13f2
mov edx, 0x80000001
mov eax, dword [ebp - 0x18c]
call fcn.0042b000
lea eax, [ebp - 0xc]
mov edx, 0x4d1850
call fcn.00405774
jmp 0x4d140f
mov edx, 0x80000002
mov eax, dword [ebp - 0x18c]
call fcn.0042b000
lea eax, [ebp - 0xc]
mov edx, 0x4d1864
call fcn.00405774
xor ecx, ecx
mov edx, 0x4d187c
mov eax, dword [ebp - 0x18c]
call fcn.0042b070
test al, al
je 0x4d1529
lea eax, [ebp - 8]
call fcn.004056dc
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18c]
call fcn.0042b938
test al, al
je 0x4d1454
lea ecx, [ebp - 8]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18c]
call fcn.0042b730
cmp dword [ebp - 8], 0
je 0x4d151e
lea ecx, [ebp - 0x1a4]
mov edx, dword [ebp - 0x180]
mov eax, dword [ebp - 0x174]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x1a4]
lea ecx, [ebp - 0x1a0]
mov eax, dword [ebp - 8]
call fcn.004bdd24
mov edx, dword [ebp - 0x1a0]
lea eax, [ebp - 8]
call fcn.00405774
lea ecx, [ebp - 0x1a8]
mov edx, 0x4d18c8
mov eax, dword [ebp - 8]
call fcn.004bdd24
mov edx, dword [ebp - 0x1a8]
lea eax, [ebp - 8]
call fcn.00405774
lea ecx, [ebp - 0x170]
mov edx, 0x3f
mov eax, dword [ebp - 8]
call fcn.0040b038
mov ebx, eax
xor eax, eax
push ebp
push 0x4d1517
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x4d14fe
test byte [ebp - 0x160], 0x18
jne 0x4d14ed
mov eax, dword [ebp + 8]
inc dword [eax]
lea eax, [ebp - 0x170]
call fcn.0040b088
mov ebx, eax
test ebx, ebx
je 0x4d14df
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d151e
lea eax, [ebp - 0x170]
call fcn.0040b0ac
ret
mov eax, dword [ebp - 0x18c]
call fcn.0042afcc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d1549
mov eax, dword [ebp - 0x18c]
call fcn.004047a0
ret
lea ecx, [ebp - 0x1ac]
mov edx, dword [ebp - 0x180]
mov eax, dword [ebp - 0x174]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x1ac]
mov eax, dword [0x4fb2bc]
call fcn.004cf6bc
mov dword [ebp - 0x188], eax
cmp dword [ebp - 0x188], 0
je 0x4d17db
xor edx, edx
push ebp
push 0x4d17d4
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x188]
call fcn.004058d4
mov eax, dword [ebp - 8]
test eax, eax
je 0x4d15eb
sub eax, 4
mov eax, dword [eax]
dec eax
jge 0x4d15f8
call fcn.00405100
jmp 0x4d17f7
lea eax, [ebp - 8]
call fcn.00405bcc
mov byte [eax], 0x41
mov edx, dword [ebp - 8]
mov eax, 0x4d18d4
call fcn.00405cb8
mov ebx, eax
lea eax, [ebp - 8]
push eax
mov ecx, ebx
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00405bd4
mov edx, dword [ebp - 8]
mov eax, 0x4d18e0
call fcn.00405cb8
mov ebx, eax
test ebx, ebx
jne 0x4d1643
call fcn.00405100
jmp 0x4d17f7
mov esi, dword [ebp - 8]
test esi, esi
je 0x4d164f
sub esi, 4
mov esi, dword [esi]
lea eax, [ebp - 8]
push eax
mov ecx, esi
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.00405bd4
mov dword [ebp - 0x184], 2
mov edx, dword [ebp - 8]
mov eax, 0x4d18ec
call fcn.00405cb8
mov ebx, eax
test ebx, ebx
jne 0x4d1686
call fcn.00405100
jmp 0x4d17f7
mov esi, dword [ebp - 8]
test esi, esi
je 0x4d1692
sub esi, 4
mov esi, dword [esi]
lea eax, [ebp - 8]
push eax
lea edx, [ebx + 1]
mov ecx, esi
mov eax, dword [ebp - 8]
call fcn.00405bd4
dec dword [ebp - 0x184]
jne 0x4d1669
mov edx, dword [ebp - 8]
mov eax, 0x4d18ec
call fcn.00405cb8
mov ebx, eax
test ebx, ebx
jne 0x4d16c8
call fcn.00405100
jmp 0x4d17f7
lea eax, [ebp - 0x1b4]
push eax
mov ecx, ebx
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00405bd4
mov eax, dword [ebp - 0x1b4]
lea edx, [ebp - 0x1b0]
call fcn.0040a4a8
mov eax, dword [ebp - 0x1b0]
xor edx, edx
call fcn.0040abd0
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov esi, dword [ebp - 8]
test esi, esi
je 0x4d170e
sub esi, 4
mov esi, dword [esi]
lea eax, [ebp - 8]
push eax
lea edx, [ebx + 1]
mov ecx, esi
mov eax, dword [ebp - 8]
call fcn.00405bd4
mov edx, dword [ebp - 8]
mov eax, 0x4d18ec
call fcn.00405cb8
mov ebx, eax
test ebx, ebx
jne 0x4d173c
call fcn.00405100
jmp 0x4d17f7
mov esi, dword [ebp - 8]
test esi, esi
je 0x4d1748
sub esi, 4
mov esi, dword [esi]
lea eax, [ebp - 8]
push eax
lea edx, [ebx + 1]
mov ecx, esi
mov eax, dword [ebp - 8]
call fcn.00405bd4
mov edx, dword [ebp - 8]
mov eax, 0x4d18ec
call fcn.00405cb8
mov ebx, eax
test ebx, ebx
jne 0x4d177b
mov eax, dword [ebp - 8]
test eax, eax
je 0x4d1778
sub eax, 4
mov eax, dword [eax]
lea ebx, [eax + 1]
lea eax, [ebp - 8]
push eax
mov ecx, ebx
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00405bd4
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.0040abd0
mov ebx, eax
movzx eax, byte [ebp - 0x175]
call fcn.004d127c
cmp ebx, eax
je 0x4d17b4
call fcn.004bd828
sub al, 2
jae 0x4d17bb
call fcn.00405100
jmp 0x4d17f7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d17db
mov eax, dword [ebp - 0x188]
call fcn.0040b75c
ret
inc dword [ebp - 0x180]
dec dword [ebp - 0x190]
jne 0x4d1336
mov dword [ebp - 0x17c], 0xfffffffe
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d183a
lea eax, [ebp - 0x1b4]
mov edx, 9
call fcn.00405700
lea eax, [ebp - 0x170]
mov edx, dword [0x4090e4]
call fcn.0040656c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405700
ret