Function at 0x816c4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x15
push 0
push 0
dec ecx
jne 0x816cd
xchg dword [ebp - 4], ecx
push ebx
test dl, dl
je 0x816e4
add esp, 0xfffffff0
call fcn.00013250
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x81ca7
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00012ee0
cmp byte [ebp + 8], 0
jne 0x81727
mov eax, dword [0xfb404]
cmp dword [eax], 5
jne 0x8171e
mov eax, dword [ebp - 4]
mov byte [eax + 0x14], 1
jmp 0x81730
mov eax, dword [ebp - 4]
mov byte [eax + 0x14], 2
jmp 0x81730
mov al, byte [ebp + 8]
mov edx, dword [ebp - 4]
mov byte [edx + 0x14], al
mov ecx, 0x34
mov dl, 1
mov eax, dword [0x7ee4c]
call fcn.0007f1a8
mov edx, dword [ebp - 4]
mov dword [edx + 0x74], eax
mov eax, dword [ebp - 4]
mov dword [eax + 0xa0], pe_nt_image_headers32
mov eax, dword [ebp - 4]
mov byte [eax + 0x68], 0
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.0007fc68
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 4]
add eax, 0x20
call fcn.000142e4
mov eax, dword [ebp - 4]
add eax, 0x10
call fcn.000142a8
mov eax, dword [ebp - 4]
add eax, 4
call fcn.000142a8
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x4c], edx
lea eax, [ebp - 0x3c]
call fcn.00078514
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
add eax, 0x58
call fcn.00014458
mov eax, dword [ebp - 4]
add eax, 0x3c
call fcn.000142a8
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x9c], edx
lea eax, [ebp - 0x40]
call fcn.00078514
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 4]
add eax, 0x88
call fcn.00014458
mov eax, dword [ebp - 4]
add eax, 0x30
call fcn.000142a8
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x98], edx
lea eax, [ebp - 0x44]
call fcn.00078514
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 4]
add eax, 0x24
call fcn.00014458
mov eax, dword [ebp - 4]
add eax, 0x34
call fcn.000142a8
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x48], edx
lea eax, [ebp - 0x48]
call fcn.00078514
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 4]
add eax, 0x18
call fcn.00014458
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x40], edx
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x8c], edx
mov eax, dword [ebp - 4]
cmp byte [eax + 0x14], 1
jne 0x81b28
cmp dword [ebp + 0x10], 0
jne 0x8186a
cmp dword [ebp + 0xc], 0x14
jb 0x8189c
jmp 0x8186c
jl 0x8189c
cmp dword [ebp + 0x10], 0
jne 0x8187d
cmp dword [ebp + 0xc], 0x19000
ja 0x8189c
jmp 0x8187f
jg 0x8189c
push 0
push 0x400
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call fcn.00016b14
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x50], eax
mov dword [ecx + 0x54], edx
jmp 0x818ad
mov eax, dword [ebp - 4]
mov dword [eax + 0x50], 0xa00000
mov dword [eax + 0x54], 0
mov ecx, 1
mov edx, 0xc0000000
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
call fcn.00079f70
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0xffffffff
jne 0x8196a
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
call fcn.0006404c
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x10]
call fcn.00063ff8
mov eax, dword [ebp - 0x10]
call fcn.0006b5e0
push 2
mov ecx, 1
mov edx, 0xc0000000
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
call fcn.00079e98
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0xffffffff
setne al
mov edx, dword [ebp - 4]
mov byte [edx + 0x68], al
mov eax, dword [ebp - 4]
cmp byte [eax + 0x68], 0
je 0x8196a
mov eax, dword [ebp - 4]
call fcn.00081550
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
call fcn.00079f5c
mov ecx, 1
mov edx, 0xc0000000
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
call fcn.00079f70
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0xffffffff
setne al
mov edx, dword [ebp - 4]
mov byte [edx + 0x68], al
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0xffffffff
je 0x81b14
mov eax, dword [ebp - 4]
mov byte [eax + 0x68], 1
mov eax, dword [ebp - 4]
mov dword [eax + 0x78], 0
mov dword [eax + 0x7c], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x80], 0
mov dword [eax + 0x84], 0
mov eax, dword [ebp - 4]
call fcn.00081280
lea eax, [ebp - 0x50]
call fcn.00078514
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 4]
add eax, 0x28
call fcn.00014458
mov eax, dword [ebp - 4]
push dword [eax + 0x28]
push 0x81cd8
mov eax, dword [ebp - 4]
push dword [eax + 0x20]
push 0x81cf8
lea eax, [ebp - 0x58]
call fcn.00078368
mov edx, dword [ebp - 0x58]
lea eax, [ebp - 0x54]
call fcn.00014458
push dword [ebp - 0x54]
lea edx, [ebp - 0x64]
mov eax, 0x81d3c
call fcn.0007a2b0
push dword [ebp - 0x64]
call sub.kernel32.dll_GetCurrentProcessId
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x68]
call fcn.00076650
push dword [ebp - 0x68]
lea edx, [ebp - 0x6c]
mov eax, 0x81d44
call fcn.0007a2b0
push dword [ebp - 0x6c]
call fcn.00079e84
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x70]
call fcn.00076650
push dword [ebp - 0x70]
lea eax, [ebp - 0x60]
mov edx, 4
call fcn.00013fb8
mov edx, dword [ebp - 0x60]
lea eax, [ebp - 0x5c]
call fcn.00014458
push dword [ebp - 0x5c]
push 0x81d4c
call fcn.00079e70
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x78]
call fcn.00076650
mov edx, dword [ebp - 0x78]
lea eax, [ebp - 0x74]
call fcn.00014458
push dword [ebp - 0x74]
lea edx, [ebp - 0x84]
mov eax, 0x81d64
call fcn.0007a2b0
push dword [ebp - 0x84]
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x14]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x88]
call fcn.00076650
push dword [ebp - 0x88]
lea edx, [ebp - 0x8c]
mov eax, 0x81d68
call fcn.0007a2b0
push dword [ebp - 0x8c]
mov eax, dword [ebp - 4]
push dword [eax + 0x94]
push dword [eax + 0x90]
lea eax, [ebp - 0x90]
call fcn.00076650
push dword [ebp - 0x90]
lea eax, [ebp - 0x80]
mov edx, 4
call fcn.00013fb8
mov edx, dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
call fcn.00014458
push dword [ebp - 0x7c]
mov eax, dword [ebp - 4]
add eax, 0x28
mov edx, 9
call fcn.000145ac
mov eax, dword [ebp - 4]
call fcn.00081408
jmp 0x81b1b
mov eax, dword [ebp - 4]
mov byte [eax + 0x68], 0
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x2c], edx
jmp 0x81c0f
lea eax, [ebp - 0xa8]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x20]
call fcn.00013ec0
mov eax, dword [ebp - 0xa8]
lea edx, [ebp - 0xa4]
call fcn.0006a8c4
lea eax, [ebp - 0xa4]
lea edx, [ebp - 0x94]
call fcn.0006a8fc
mov eax, dword [ebp - 0x94]
push eax
lea edx, [ebp - 0xac]
mov eax, 0x81d6c
call fcn.0007a2b0
mov edx, dword [ebp - 0xac]
mov eax, dword [ebp - 4]
add eax, 0x1c
pop ecx
call fcn.00013f44
push 1
lea eax, [ebp - 0x28]
push eax
call sub.advapi32.dll_InitializeSecurityDescriptor
push 0
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x28]
push eax
call sub.advapi32.dll_SetSecurityDescriptorDacl
mov dword [ebp - 0x34], 0xc
lea eax, [ebp - 0x28]
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
call fcn.000140bc
push eax
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x34]
push eax
call sub.kernel32.dll_CreateEventA
mov edx, dword [ebp - 4]
mov dword [edx + 0x8c], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
push eax
mov eax, dword [ebp - 4]
add eax, 0x68
push eax
mov eax, dword [ebp - 4]
add eax, 0x69
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x20]
mov dl, 1
mov eax, dword [0x7f6c8]
call fcn.000805ec
mov edx, dword [ebp - 4]
mov dword [edx + 0x2c], eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x64], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x81cb1
lea eax, [ebp - 0xac]
mov edx, 2
call fcn.00013c9c
lea eax, [ebp - 0x94]
mov edx, 6
call fcn.00013c9c
lea eax, [ebp - 0x7c]
call fcn.000142a8
lea eax, [ebp - 0x78]
call fcn.00013c78
lea eax, [ebp - 0x74]
call fcn.000142a8
lea eax, [ebp - 0x70]
mov edx, 5
call fcn.00013c9c
lea eax, [ebp - 0x5c]
call fcn.000142a8
lea eax, [ebp - 0x58]
call fcn.00013c78
lea eax, [ebp - 0x54]
call fcn.000142a8
lea eax, [ebp - 0x50]
call fcn.00013c78
lea eax, [ebp - 0x4c]
call fcn.000142a8
lea eax, [ebp - 0x48]
mov edx, 4
call fcn.00013c9c
lea eax, [ebp - 0x38]
call fcn.000142a8
lea eax, [ebp - 0x10]
call fcn.000142a8
ret