Function at 0x409338
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x409340
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x4096ff
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4096da
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
call fcn.00405218
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, dword [0x411958]
call fcn.004032c0
lea eax, [ebp - 4]
call fcn.00405290
lea eax, [ebp - 0x14]
call fcn.00405218
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0xc]
call fcn.004051c4
mov eax, dword [ebp - 0xc]
call fcn.00403274
mov ecx, eax
sub ecx, 2
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004034bc
cmp dword [0x411964], 1
jne 0x409425
xor eax, eax
push ebp
push 0x40941b
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x409718
mov eax, 0x80000002
call fcn.004053b0
mov ebx, eax
xor ecx, ecx
mov edx, dword [0x41195c]
mov eax, ebx
call fcn.00405480
mov ecx, dword [0x411958]
mov edx, dword [0x41195c]
mov eax, ebx
call fcn.00405480
mov eax, ebx
call fcn.004054c0
push 0
push 0x409748
call fcn.004045ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x409425
cmp dword [0x411974], 1
jne 0x4094df
xor eax, eax
push ebp
push 0x4094d5
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x409718
mov eax, 0x80000002
call fcn.004053b0
mov ebx, eax
mov ecx, dword [ebp - 8]
mov edx, dword [0x41195c]
mov eax, ebx
call fcn.00405480
mov edx, 0x40975c
mov eax, 0x80000002
call fcn.004053b0
mov ebx, eax
mov ecx, dword [ebp - 8]
mov edx, dword [0x41195c]
mov eax, ebx
call fcn.00405480
mov edx, 0x409798
mov eax, 0x80000002
call fcn.004053b0
mov ebx, eax
mov ecx, dword [ebp - 8]
mov edx, dword [0x41195c]
mov eax, ebx
call fcn.00405480
mov edx, 0x409718
mov eax, 0x80000001
call fcn.004053b0
mov ebx, eax
mov ecx, dword [ebp - 8]
mov edx, dword [0x41195c]
mov eax, ebx
call fcn.00405480
mov eax, ebx
call fcn.004054c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4094df
cmp dword [0x411970], 1
jne 0x409562
xor eax, eax
push ebp
push 0x409558
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
mov ecx, 0x4097d4
mov edx, dword [ebp - 4]
call fcn.004032c0
mov eax, dword [ebp - 0x18]
call fcn.00405c3c
mov ebx, eax
lea eax, [ebx + 0x1d]
mov edx, 0x4097e4
call fcn.00403128
mov byte [ebx + 0x18], 1
lea eax, [ebp - 0x1c]
push eax
mov eax, ebx
mov ecx, dword [ebp - 8]
mov edx, 0x4097f4
call fcn.00405b98
lea eax, [ebp - 0x20]
push eax
mov eax, ebx
mov ecx, dword [ebp - 8]
mov edx, 0x409804
call fcn.00405b98
mov eax, ebx
call fcn.004049c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x409562
cmp dword [0x41196c], 1
jne 0x4095e5
xor eax, eax
push ebp
push 0x4095db
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x24]
mov ecx, 0x409810
mov edx, dword [ebp - 4]
call fcn.004032c0
mov eax, dword [ebp - 0x24]
call fcn.00405c3c
mov ebx, eax
lea eax, [ebx + 0x1d]
mov edx, 0x4097e4
call fcn.00403128
mov byte [ebx + 0x18], 1
lea eax, [ebp - 0x28]
push eax
mov eax, ebx
mov ecx, dword [ebp - 8]
mov edx, 0x4097f4
call fcn.00405b98
lea eax, [ebp - 0x2c]
push eax
mov eax, ebx
mov ecx, dword [ebp - 8]
mov edx, 0x409804
call fcn.00405b98
mov eax, ebx
call fcn.004049c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4095e5
cmp dword [0x411968], 1
jne 0x40966d
xor eax, eax
push ebp
push 0x409663
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x30]
mov ecx, 0x409824
mov edx, dword [ebp - 0xc]
call fcn.004032c0
mov eax, dword [ebp - 0x30]
call fcn.00405c3c
mov ebx, eax
lea eax, [ebx + 0x1d]
mov edx, 0x40983c
call fcn.00403128
mov byte [ebx + 0x18], 1
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 8]
push 0x40984c
push dword [ebp - 0xc]
lea eax, [ebp - 0x38]
mov edx, 3
call fcn.00403334
mov ecx, dword [ebp - 0x38]
mov eax, ebx
mov edx, 0x40985c
call fcn.00405b98
mov eax, ebx
call fcn.004049c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40966d
lea edx, [ebp - 0x3c]
xor eax, eax
call fcn.00404ddc
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 8]
call fcn.00403384
je 0x4096d0
mov eax, dword [ebp - 8]
call fcn.00404f4c
test al, al
je 0x40969e
mov eax, dword [ebp - 8]
call fcn.00403438
push eax
call fcn.00404514
push 0
mov eax, dword [ebp - 8]
call fcn.00403438
mov ebx, eax
push ebx
lea edx, [ebp - 0x40]
xor eax, eax
call fcn.00404ddc
mov eax, dword [ebp - 0x40]
call fcn.00403438
push eax
call fcn.00404504
push 0
push ebx
call fcn.004045ec
call fcn.00402f9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4096e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409706
lea eax, [ebp - 0x40]
mov edx, 0x10
call fcn.004030f8
ret