Function at 0x401ae0
Capabilities:
Get common file path
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x407004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x38]
push edi
push eax
push 0
push 0
push 0x405574
mov dword [ebp - 0x38], 0
call sub.SHELL32.dll_SHGetKnownFolderPath
mov edx, dword [ebp - 0x38]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 7
mov word [ebp - 0x1c], ax
lea edi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401b30
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x1c]
call fcn.004012c0
push 0x1b
push str.FileWavelog_run_kiosk.log
lea ecx, [ebp - 0x1c]
call fcn.00401140
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x34], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x24], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 8]
cmp edx, 8
jb 0x401bb8
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401bae
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401bae
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00401f1f
add esp, 8
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
push 0x404228
cmovae eax, dword [ebp - 0x34]
push eax
push 0x407090
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
add esp, 0xc
test eax, eax
je 0x401be3
or esi, 0xffffffff
jmp 0x401e45
push 6
xor eax, eax
mov dword [ebp - 0xc], 0
push 0x40422c
lea ecx, [ebp - 0x1c]
mov dword [ebp - 8], 7
mov word [ebp - 0x1c], ax
call fcn.004012c0
lea eax, [ebp - 0x1c]
push eax
call fcn.00401420
mov edx, dword [ebp - 8]
add esp, 4
cmp edx, 8
jb 0x401c4c
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401c42
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401e71
push edx
push ecx
call fcn.00401f1f
add esp, 8
push str._noservices
push esi
call sub.VCRUNTIME140.dll_wcsstr
add esp, 8
test eax, eax
jne 0x401dde
call fcn.004019b0
test al, al
jne 0x401c79
push esi
call fcn.00401a10
add esp, 4
jmp 0x401e43
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x401d89
push 0x10
push str.FileWaveWinClient
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x401d2b
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x401cc3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x401d18
push str.Service_started_successfully
lea ecx, [ebp - 0x1c]
call fcn.00401000
lea eax, [ebp - 0x1c]
push eax
call fcn.004013d0
mov edx, dword [ebp - 8]
add esp, 4
cmp edx, 8
jb 0x401d18
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401d0e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401d0e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00401f1f
add esp, 8
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x401dde
push str.Failed_to_find_the_service.
lea ecx, [ebp - 0x1c]
call fcn.00401000
lea eax, [ebp - 0x1c]
push eax
call fcn.004013d0
mov edx, dword [ebp - 8]
add esp, 4
cmp edx, 8
jb 0x401d80
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401d76
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401d76
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00401f1f
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x401dde
push str.Failed_to_open_SC_manager.
lea ecx, [ebp - 0x1c]
call fcn.00401000
lea eax, [ebp - 0x1c]
push eax
call fcn.004013d0
mov edx, dword [ebp - 8]
add esp, 4
cmp edx, 8
jb 0x401dde
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401dd4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401dd4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00401f1f
add esp, 8
push 6
xor eax, eax
mov dword [ebp - 0xc], 0
push str.FOOTER
lea ecx, [ebp - 0x1c]
mov dword [ebp - 8], 7
mov word [ebp - 0x1c], ax
call fcn.004012c0
lea eax, [ebp - 0x1c]
push eax
call fcn.00401420
mov edx, dword [ebp - 8]
add esp, 4
cmp edx, 8
jb 0x401e43
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401e39
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401e71
push edx
push ecx
call fcn.00401f1f
add esp, 8
xor esi, esi
mov edx, dword [ebp - 0x20]
cmp edx, 8
jb 0x401e81
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401e77
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401e77
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00401f1f
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00401f2d
mov esp, ebp
pop ebp
ret 0x10