Function at 0x100497b6
Capabilities:
Create pipe
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov dword [ebp - 0x1c], 0xfffffffa
mov dword [ebp - 8], 0
jmp 0x100497d6
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 2
jge 0x100497ec
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0x88], 0
jmp 0x100497cf
mov dword [ebp - 8], 0
jmp 0x100497fc
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 2
jge 0x10049812
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0x90], 0x8a6b950b
jmp 0x100497f5
mov dword [ebp - 0x1c], 1
jmp 0x10049822
mov eax, dword [ebp - 0x1c]
dec eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jl 0x10049852
mov dword [ebp - 0x60], 1
mov byte [ebp - 0xe], 0
movzx eax, byte [ebp - 0xe]
test eax, eax
je 0x10049849
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegGetKeySecurity]
mov eax, dword [ebp - 0x60]
dec eax
mov dword [ebp - 0x60], eax
jmp 0x1004981b
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
movzx eax, byte [eax]
test eax, eax
je 0x10049afb
mov dword [ebp - 0x18], 0x7c20
mov dword [ebp - 0x14], 0x95a97963
mov dword [ebp - 0xc], 8
mov dword [ebp - 4], 0x5336de01
mov dword [ebp - 0x20], 0
jmp 0x10049892
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 2
jge 0x100498a5
mov eax, dword [ebp - 0x20]
mov dword [ebp + eax*4 - 0x4c], 0x23aa
jmp 0x1004988b
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0xc]
cmp eax, 0x5ed9a924
jl 0x100498c1
mov dword [ebp - 0x30], 1
jmp 0x100498c5
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 0x30]
add eax, ecx
cmp eax, 1
je 0x100498de
mov dword [ebp - 0x50], 1
jmp 0x100498e2
and dword [ebp - 0x50], 0
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x50]
cmp eax, dword [ebp - 4]
jle 0x100498f6
mov dword [ebp - 0x38], 1
jmp 0x100498fa
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], 0
jmp 0x10049910
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 1
jl 0x10049ad6
mov dword [ebp - 0x24], 0x25c7e4dd
mov dword [ebp - 0x14], 0
jmp 0x10049931
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
jg 0x10049a85
mov dword [ebp - 0x40], 0xf8169c14
mov dword [ebp - 0x5c], 0xf093d7f2
mov dword [ebp - 4], 0
jmp 0x10049959
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 1
jg 0x10049a80
mov dword [ebp - 0x68], 0xfffffff8
mov dword [ebp - 0x74], 0xedbec151
mov eax, dword [ebp - 4]
mov eax, dword [ebp + eax*4 - 0x4c]
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x40], 0xa14a9c79
jae 0x1004998d
mov dword [ebp - 0x58], 1
jmp 0x10049991
and dword [ebp - 0x58], 0
cmp dword [ebp - 0x58], 0xb5cfda6c
jb 0x100499a3
mov dword [ebp - 0x28], 1
jmp 0x100499a7
and dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x40]
imul eax, dword [ebp - 0x28]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 4]
mov eax, dword [ebp + eax*4 - 0x4c]
cmp dword [ebp - 0x68], eax
jg 0x100499cc
cmp dword [ebp - 0x5c], 0
je 0x100499cc
mov dword [ebp - 0x54], 1
jmp 0x100499d0
and dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x5c]
cmp dword [ebp - 0x54], eax
jl 0x100499e1
mov dword [ebp - 0x64], 1
jmp 0x100499e5
and dword [ebp - 0x64], 0
mov eax, dword [ebp - 4]
mov eax, dword [ebp + eax*4 - 0x4c]
imul eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 4]
imul eax, dword [ebp + ecx*4 - 0x4c]
cmp eax, 0xd2c2
jle 0x10049a08
mov dword [ebp - 0x44], 1
jmp 0x10049a0c
and dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x44], eax
jle 0x10049a1d
mov dword [ebp - 0x70], 1
jmp 0x10049a21
and dword [ebp - 0x70], 0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x78], eax
push 4
pop eax
cmp eax, 0xb5fb
ja 0x10049a44
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x4c], 0
jne 0x10049a44
and dword [ebp - 0x2c], 0
jmp 0x10049a4b
mov dword [ebp - 0x2c], 1
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x2c], eax
je 0x10049a5c
mov dword [ebp - 0x34], 1
jmp 0x10049a60
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x34], eax
jne 0x10049a71
mov dword [ebp - 0x3c], 1
jmp 0x10049a75
and dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x74], eax
jmp 0x10049952
jmp 0x1004992a
mov dword [ebp - 0xc], 1
jmp 0x10049a95
mov eax, dword [ebp - 0xc]
dec eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jl 0x10049ad1
mov byte [ebp - 0xd], 0
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x10049acf
push 0
push 0xa0
push 0x3e4
push 0x9d0
push 0xf1d
push 0x19bf
push 0x19e5
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
jmp 0x10049a8e
jmp 0x10049909
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x24d7
push 0x1735
push 0x95c
push 0
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov esp, ebp
pop ebp
ret