Function at 0x403100
Capabilities:
Get common file path
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405c66
mov eax, dword fs:[0]
push eax
sub esp, 0x880
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x1a
lea eax, [ebp - 0x840]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov dword [ebp - 0x874], 0
push 0x17
push str.FullWaveViewer2Config
lea ecx, [ebp - 0x874]
mov dword [ebp - 0x864], 0
mov dword [ebp - 0x860], 0xf
mov byte [ebp - 0x874], 0
mov dword [ebp - 4], 0xffffffff
call fcn.00403850
lea esi, [ebp - 0x840]
mov dword [ebp - 4], 1
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x4031a0
mov edx, dword [ebp - 0x860]
sub esi, ecx
mov ecx, dword [ebp - 0x864]
mov eax, edx
sub eax, ecx
cmp esi, eax
ja 0x40326e
lea eax, [ecx + esi]
cmp edx, 0x10
mov dword [ebp - 0x864], eax
lea edi, [ebp - 0x874]
cmovae edi, dword [ebp - 0x874]
lea eax, [ebp - 0x840]
add eax, esi
cmp eax, edi
jbe 0x403217
lea eax, [edi + ecx]
lea edx, [ebp - 0x840]
cmp edx, eax
ja 0x403217
mov eax, edx
cmp edi, eax
ja 0x403205
mov dword [ebp - 0x85c], 0
jmp 0x40321d
mov eax, edi
lea edx, [ebp - 0x840]
sub eax, edx
mov dword [ebp - 0x85c], eax
jmp 0x40321d
mov dword [ebp - 0x85c], esi
lea eax, [ecx + 1]
push eax
lea ecx, [edi + esi]
push edi
push ecx
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x85c]
push eax
lea eax, [ebp - 0x840]
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x85c]
lea ecx, [ebp - 0x840]
mov edx, esi
sub edx, eax
add eax, esi
add ecx, eax
mov eax, dword [ebp - 0x85c]
push edx
add eax, edi
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0x24
lea eax, [ebp - 0x874]
jmp 0x403289
push esi
lea eax, [ebp - 0x840]
push eax
push ecx
push dword [ebp - 0x85c]
lea ecx, [ebp - 0x874]
push esi
call fcn.00404520
mov dword [ebp - 0x88c], 0
mov dword [ebp - 0x87c], 0
mov dword [ebp - 0x878], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x88c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x87c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 0x85c], 0
lea edx, [ebp - 0x88c]
push dword [ebp - 0x85c]
lea ecx, [ebp - 0x858]
mov byte [ebp - 4], 4
call fcn.004043b0
add esp, 4
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x878]
cmp edx, 0x10
jb 0x40332e
mov ecx, dword [ebp - 0x88c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403324
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403379
push edx
push ecx
call fcn.00404bfa
add esp, 8
mov dword [ebp - 0x87c], 0
mov dword [ebp - 0x878], 0xf
mov byte [ebp - 0x88c], 0
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x860]
cmp edx, 0x10
jb 0x403389
mov ecx, dword [ebp - 0x874]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40337f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40337f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00404bfa
add esp, 8
lea ecx, [ebp - 0x858]
mov dword [ebp - 0x864], 0
mov dword [ebp - 0x860], 0xf
mov byte [ebp - 0x874], 0
call fcn.00402c60
test al, al
je 0x4033be
lea ecx, [ebp - 0x858]
call fcn.00403070
mov edx, dword [ebp - 0x844]
cmp edx, 8
jb 0x403400
mov ecx, dword [ebp - 0x858]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4033f6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4033f6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00404bfa
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00404bb7
mov esp, ebp
pop ebp
ret