Function at 0x411ed0
Capabilities:
Create service
Modify service

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xcc]
push ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov eax, 1
lea edx, [ebp - 0x78]
lea ecx, [ebp - 0x60]
call fcn.0040bf40
call fcn.0040da40
push eax
test eax, eax
jne 0x412211
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x7c]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x60]
mov dword [ebp - 0x30], eax
lea edx, [ebp - 0x20]
mov eax, 0
call fcn.004118e0
mov edx, dword [ebp - 0x20]
mov al, 0x20
call fcn.004085a0
test eax, eax
je 0x411f91
push 0
mov eax, 0x4b1ad4
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x84], eax
mov eax, 0x4b1ad4
mov dword [ebp - 0x80], eax
lea edx, [ebp - 0x88]
lea eax, [ebp - 0x20]
mov ecx, 2
call fcn.00407a10
push 0
mov ecx, str.___run
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x20]
call fcn.004077a0
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x4c], 0
je 0x411fde
push 0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x88], eax
mov eax, 0x4b1af8
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x4c]
mov dword [ebp - 0x80], eax
lea edx, [ebp - 0x88]
lea eax, [ebp - 0x20]
mov ecx, 2
call fcn.00407a10
mov eax, dword [ebp - 0x30]
mov edx, dword [eax + 0x34]
lea eax, [ebp - 0x18]
call fcn.004076a0
mov eax, dword [ebp - 0x30]
mov edx, dword [eax + 0x24]
lea eax, [ebp - 0x1c]
call fcn.004076a0
mov eax, dword [ebp - 0x30]
mov ebx, dword [eax + 0x48]
mov edx, dword [ebx + 0x18]
lea eax, [ebp - 0x24]
call fcn.004076a0
mov edx, dword [ebx + 0x2c]
lea eax, [ebp - 0x28]
call fcn.004076a0
cmp dword [ebp - 0x28], 0
jne 0x412025
mov dword [ebp - 0x4c], 0
jmp 0x412034
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x412031
mov eax, 0x4f52f0
mov dword [ebp - 0x4c], eax
mov edx, dword [ebx + 0x1c]
lea eax, [ebp - 0x2c]
call fcn.004076a0
cmp dword [ebp - 0x2c], 0
jne 0x41204e
mov dword [ebp - 0x50], 0
jmp 0x41205d
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x41205a
mov eax, 0x4f52f0
mov dword [ebp - 0x50], eax
mov eax, dword [ebx + 0x20]
mov eax, dword [eax*4 + 0x4a7080]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x30]
test dword [eax + 0x40], 4
je 0x412083
cmp dword [ebx + 0x20], 0
jne 0x412083
or dword [ebp - 0x34], 0x100
cmp dword [ebx + 0x20], 0
jne 0x4120a8
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x6c]
mov eax, dword [eax + 0x34]
call fcn.00422860
cmp eax, 1
jle 0x4120a8
mov eax, dword [ebp - 0x34]
xor eax, 0x10
or eax, 0x20
mov dword [ebp - 0x34], eax
mov eax, dword [ebx + 0x24]
mov eax, dword [eax*4 + 0x4a7090]
mov dword [ebp - 0x38], eax
mov eax, dword [ebx + 0x24]
cmp eax, 2
jae 0x4120ca
cmp dword [ebx + 0x20], 1
je 0x4120ca
mov dword [ebp - 0x38], 2
mov eax, dword [ebx + 0x28]
cmp dword [ebx + 0x28], 0
je 0x4120db
lea eax, [ebx + 0x28]
mov dword [ebp - 0x44], eax
jmp 0x4120e2
mov dword [ebp - 0x44], 0
mov eax, dword [ebx + 0x14]
mov eax, dword [eax*4 + 0x4a70b0]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebx + 0xc]
call fcn.00411dd0
mov dword [ebp - 0x48], eax
mov eax, 1
lea edx, [ebp - 0xa0]
lea ecx, [ebp - 0x88]
call fcn.0040bf40
call fcn.0040da40
push eax
test eax, eax
jne 0x4121f4
push dword [ebp - 0x50]
push dword [ebp - 0x4c]
push dword [ebp - 0x48]
push dword [ebp - 0x44]
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x412136
mov eax, 0x4f52f0
push eax
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x412143
mov eax, 0x4f52f0
push eax
push dword [ebp - 0x3c]
push dword [ebp - 0x38]
push dword [ebp - 0x34]
push 0xf01ff
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x41215e
mov eax, 0x4f52f0
push eax
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x41216b
mov eax, 0x4f52f0
push eax
push dword [ebp - 0xc]
call fcn.0043dba0
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x412180
call fcn.00439240
mov eax, 1
lea edx, [ebp - 0xc8]
lea ecx, [ebp - 0xb0]
call fcn.0040bf40
call fcn.0040da40
push eax
test eax, eax
jne 0x4121dd
mov eax, dword [ebp - 0x30]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x14]
call fcn.004076a0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x4121ba
mov eax, 0x4f52f0
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x54]
push eax
push 1
push dword [ebp - 0x10]
call fcn.0043db80
cmp dword [ebp - 0x44], 0
je 0x4121dd
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x48]
mov edx, dword [ebp - 0x40]
mov dword [eax + 0x28], edx
call fcn.0040c1c0
push dword [ebp - 0x10]
call fcn.0043db90
pop eax
test eax, eax
je 0x4121f4
call fcn.0040c2f0
call fcn.0040c1c0
cmp dword [ebp - 0x48], 0
je 0x412207
mov eax, dword [ebp - 0x48]
call fcn.0040daf0
pop eax
test eax, eax
je 0x412211
call fcn.0040c2f0
call fcn.0040c1c0
lea eax, [ebp - 0x14]
call fcn.00402a20
lea eax, [ebp - 0x18]
call fcn.00402a20
lea eax, [ebp - 0x1c]
call fcn.00402a20
lea eax, [ebp - 0x20]
call fcn.00402a20
lea eax, [ebp - 0x24]
call fcn.00402a20
lea eax, [ebp - 0x28]
call fcn.00402a20
lea eax, [ebp - 0x2c]
call fcn.00402a20
pop eax
test eax, eax
je 0x412258
call fcn.0040c2f0
pop ebx
leave
ret