Function at 0x100195d7
Capabilities:
Create thread
Get common file path
Get session user name

Disassembly:
push ebp
lea ebp, [esp - 0x590]
sub esp, 0x610
mov eax, dword [0x1007ef24]
xor eax, ebp
mov dword [ebp + 0x58c], eax
mov eax, dword [ebp + 0x59c]
push ebx
push esi
mov esi, dword [ebp + 0x5a0]
push edi
push 8
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x5e0]
pop ecx
mov edx, 0x10081064
mov dword [ebp - 0x7c], eax
xor eax, eax
mov edi, edx
push 0x1f
push edx
mov dword [ebp - 0x80], esi
rep stosd dword es:[edi], eax
call fcn.10015343
pop ecx
pop ecx
push 0x200
mov ebx, 0x10080e60
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebx
call fcn.10010a68
pop ecx
push ebx
mov ecx, 0x10081520
mov byte [0x10081063], al
call fcn.10006d0a
call fcn.10016300
push ebx
call fcn.10015254
mov byte [0x10081061], al
call fcn.10014450
mov byte [0x10081084], al
mov dword [esp], 0x1ff
lea eax, [ebp - 0x73]
push 0
push eax
mov byte [ebp - 0x74], 0
call fcn.10042a90
lea eax, [ebp - 0x74]
push eax
push esi
call fcn.10010ba4
add esp, 0x14
test eax, eax
jne 0x1001969d
mov eax, 0x277a
jmp 0x10019929
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [ebp - 0x74]
push eax
call edi
test eax, eax
jne 0x100196c1
lea eax, [ebp - 0x74]
push eax
call fcn.10016238
pop ecx
lea eax, [ebp - 0x74]
push eax
call edi
test eax, eax
je 0x10019693
push 0x10066410
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10019693
push dword [ebp - 0x7c]
lea esi, [ebp + 0x5a4]
sub esp, 0x3c
push 0xf
pop ecx
mov edi, esp
push dword [ebp - 0x80]
rep movsd dword es:[edi], dword [esi]
push dword [ebp - 0x78]
push dword [ebp + 0x598]
call eax
test eax, eax
jne 0x10019929
cmp byte [0x10081060], al
jne 0x10019927
push ebx
mov byte [0x10081060], 1
call fcn.100153f4
test al, al
pop ecx
jne 0x10019927
mov esi, 0x1ff
push esi
mov byte [ebp + 0x38c], al
lea eax, [ebp + 0x38d]
push 0
push eax
call fcn.10042a90
add esp, 0xc
cmp byte [0x10081084], 0
je 0x10019747
mov dword [ebp - 0x78], esi
jmp 0x10019771
lea eax, [ebp + 0x38c]
push eax
call fcn.100161f3
test al, al
pop ecx
jne 0x10019782
push 0x200
lea eax, [ebp + 0x38c]
push 0
push eax
mov dword [ebp - 0x78], esi
call fcn.10042a90
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x38c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [ebp + 0x38c]
push eax
mov ecx, 0x10081520
call fcn.10006d0a
push 7
mov edi, str.system
lea esi, [ebp + 0x38c]
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x10019927
push 0x10
mov edi, str.network_service
lea esi, [ebp + 0x38c]
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x10019927
push 0xe
mov edi, str.local_service
lea esi, [ebp + 0x38c]
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x10019927
call fcn.10016452
test al, al
je 0x100197e9
call fcn.10016354
xor esi, esi
cmp byte [0x10081084], 0
jne 0x10019871
push 0x1ff
lea eax, [ebp + 0x18d]
push esi
push eax
mov byte [ebp + 0x18c], 0
call fcn.10042a90
add esp, 0xc
push esi
push 0x1a
lea eax, [ebp + 0x18c]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
cmp byte [ebp + 0x18c], 0
je 0x10019871
lea eax, [ebp + 0x18c]
push eax
mov ecx, 0x10081520
call fcn.10006d0a
lea eax, [ebp + 0x18c]
push str.localservice_
push eax
call fcn.10043620
test eax, eax
pop ecx
pop ecx
jne 0x10019927
lea eax, [ebp + 0x18c]
push str._networkservice_
push eax
call fcn.10043620
test eax, eax
pop ecx
pop ecx
jne 0x10019927
call fcn.1001551e
call fcn.10010b18
push str.setup
push ebx
mov byte [0x10080e59], al
call fcn.10043620
test eax, eax
pop ecx
pop ecx
jne 0x100198c9
cmp byte [0x10080e59], al
je 0x100198e0
cmp byte [0x10080e5a], al
jne 0x100198c9
lea eax, [ebp - 0x78]
push eax
push esi
push esi
push 0x100161d2
push esi
push esi
mov byte [0x10080e5a], 1
mov dword [ebp - 0x78], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
je 0x100198c9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x10080e59], 0
je 0x100198e0
cmp byte [0x10081063], 0
jne 0x100198e0
call fcn.10017024
call fcn.10015124
test al, al
je 0x10019927
mov eax, dword [ebp - 0x7c]
push 0xf
pop ecx
lea esi, [ebp + 0x5a4]
mov edi, 0x10080da4
rep movsd dword es:[edi], dword [esi]
push 0x1e
pop ecx
mov esi, eax
mov edi, 0x10080de0
rep movsd dword es:[edi], dword [esi]
mov dword [eax + 0x4c], 0x1001791b
mov dword [eax + 0x5c], 0x10018ee6
mov dword [eax + 0x64], 0x100152a0
call fcn.100165d4
call fcn.10018d50
xor eax, eax
mov ecx, dword [ebp + 0x58c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10042977
add ebp, 0x590
leave
ret 0x4c