Function at 0x10008540
Capabilities:
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004a2a5
mov eax, dword fs:[0]
push eax
sub esp, 0x404
mov eax, dword [0x10060058]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x3c0], edi
push 0x104
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x3dc], edi
push eax
push str.c:programdata_audioconfig.txt
mov dword [ebp - 0x3c4], 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x100085a8
push 9
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0xb8
lea eax, [ebp - 0x3bc]
push 0
push eax
call fcn.100291d0
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x3bc]
call fcn.1000b910
push 0x34
mov dword [ebp - 4], 0
call fcn.100273ad
mov esi, eax
mov dword [ebp - 0x3c0], esi
mov dword [esi + 4], 0
push 0x34
lea eax, [ebp - 0x254]
mov dword [esi], vtable.std::codecvt_wchar_t__char__struct__Mbstatet_.0
push 0
push eax
call fcn.100291d0
add esp, 0x10
lea ecx, [ebp - 0x254]
push 0
call fcn.1000fe35
mov dword [ebp - 0x250], 0
mov byte [ebp - 0x24c], 0
mov dword [ebp - 0x248], 0
mov byte [ebp - 0x244], 0
xor eax, eax
mov dword [ebp - 0x240], 0
mov word [ebp - 0x23c], ax
mov dword [ebp - 0x238], eax
mov word [ebp - 0x234], ax
mov dword [ebp - 0x230], eax
mov byte [ebp - 0x22c], al
mov dword [ebp - 0x228], eax
mov byte [ebp - 0x224], al
lea eax, [ebp - 0x254]
mov byte [ebp - 4], 9
push 0x10059cf8
push eax
call fcn.1000fca6
lea eax, [ebp - 0x410]
push eax
call fcn.1001069c
add esp, 0xc
lea ecx, [ebp - 0x254]
movups xmm0, xmmword [eax]
movups xmmword [esi + 8], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [esi + 0x18], xmm0
movq xmm0, qword [eax + 0x20]
movq qword [esi + 0x28], xmm0
mov eax, dword [eax + 0x28]
mov dword [esi + 0x30], eax
call fcn.10006ba0
lea eax, [ebp - 0x3d4]
mov dword [esi], vtable.std::codecvt_utf8_wchar_t__1114111__0_.0
push eax
mov byte [ebp - 4], 0
call fcn.1000fd86
mov byte [ebp - 4], 0xa
push dword [eax + 4]
call fcn.1000fd0b
mov ecx, eax
add esp, 8
mov eax, dword [0x10061de4]
test eax, eax
mov dword [ebp - 0x3c8], ecx
jne 0x10008729
push eax
lea ecx, [ebp - 0x220]
call fcn.1000fe35
cmp dword [0x10061de4], 0
jne 0x10008713
mov eax, dword [0x10061dd8]
inc eax
mov dword [0x10061dd8], eax
mov dword [0x10061de4], eax
lea ecx, [ebp - 0x220]
call fcn.1000fe8d
mov ecx, dword [ebp - 0x3c8]
mov eax, dword [0x10061de4]
push eax
push esi
push ecx
call fcn.100129a9
mov eax, dword [ebp - 0x3c8]
add esp, 0xc
mov dword [eax + 0x10], 0
mov esi, dword [ebp - 0x3c8]
mov dword [ebp - 0x3c0], esi
mov eax, dword [esi + 0x18]
cmp eax, 0x10059c54
je 0x100087a2
test eax, eax
je 0x10008764
push eax
call fcn.1002c865
add esp, 4
mov dword [esi + 0x18], 0
mov esi, 0x10059c54
inc esi
cmp byte [esi], 0
jne 0x10008770
inc esi
sub esi, 0x10059c54
push esi
call fcn.1002c880
mov ecx, dword [ebp - 0x3c0]
add esp, 4
mov dword [ecx + 0x18], eax
test eax, eax
je 0x100087a2
push esi
push 0x10059c54
push eax
call fcn.10028c40
add esp, 0xc
lea eax, [ebp - 0x3cc]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x3e4]
push eax
mov eax, dword [ebp - 0x3bc]
lea ecx, [ebp - 0x3bc]
mov eax, dword [eax + 4]
add ecx, eax
call fcn.1000bba0
mov ecx, dword [ebp - 0x3e0]
test ecx, ecx
je 0x100087e7
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
mov ecx, eax
test ecx, ecx
je 0x100087e7
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [ebp - 0x3c8]
test ecx, ecx
je 0x10008804
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
mov ecx, eax
test ecx, ecx
je 0x10008804
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [ebp - 0x3d0]
test ecx, ecx
je 0x10008821
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
mov ecx, eax
test ecx, ecx
je 0x10008821
mov eax, dword [ecx]
push 1
call dword [eax]
push 0xb0
lea eax, [ebp - 0x304]
push 0
push eax
call fcn.100291d0
mov dword [ebp - 0x304], 0x10059d40
mov dword [ebp - 0x2f4], 0x10059d38
mov dword [ebp - 0x294], 0
mov dword [ebp - 0x274], 0
mov dword [ebp - 0x270], 0
mov dword [ebp - 0x26c], 0
mov dword [ebp - method.std::basic_ios_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
add esp, 4
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x2ec]
mov dword [ebp - 0x3c4], 2
lea ecx, [ebp - 0x304]
push eax
call fcn.1000c4b0
mov eax, dword [ebp - 0x2f4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0x2f4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x2f8], eax
mov eax, dword [ebp - 0x304]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0x304]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0x308], eax
mov dword [ebp - 4], 0x10
mov eax, dword [ebp - 0x304]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0x304]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x308], eax
lea ecx, [ebp - 0x2ec]
call fcn.1000c740
mov dword [ebp - method.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [ebp - 0x2b4], 0
mov dword [ebp - 0x2b0], 0
lea eax, [ebp - 0x3ac]
mov byte [ebp - 4], 0x11
push eax
lea ecx, [ebp - 0x2f4]
call fcn.1000a4c0
mov byte [ebp - 4], 0x12
xor eax, eax
mov edx, dword [ebp - 0x2b0]
xorps xmm0, xmm0
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov eax, edx
and al, 0x22
mov dword [ebp - 0x3c4], 0x22
movq qword [ebp - 0x3d8], xmm0
cmp al, 2
je 0x100089bf
mov eax, dword [ebp - 0x2cc]
mov ecx, dword [eax]
test ecx, ecx
je 0x100089bf
cmp ecx, dword [ebp - 0x2b4]
mov eax, dword [ebp - 0x2dc]
cmovb ecx, dword [ebp - 0x2b4]
mov edx, dword [eax]
sub ecx, edx
sar ecx, 1
jmp 0x100089f6
test dl, 4
jne 0x100089ea
mov eax, dword [ebp - 0x2d0]
mov esi, dword [eax]
test esi, esi
je 0x100089ea
mov eax, dword [ebp - 0x2e0]
mov edx, dword [eax]
mov eax, dword [ebp - 0x2c0]
mov ecx, dword [eax]
add ecx, ecx
sub ecx, edx
add ecx, esi
sar ecx, 1
jmp 0x100089f6
mov ecx, dword [ebp - 0x3d4]
mov edx, dword [ebp - 0x3d8]
test edx, edx
je 0x10008a03
push ecx
push edx
mov ecx, edi
call fcn.100072c0
lea ecx, [ebp - 0x304]
call fcn.10008b40
mov eax, dword [ebp - 0x3bc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ifstream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0x3bc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x3c0], eax
lea ecx, [ebp - 0x3ac]
call fcn.1000b540
mov eax, dword [ebp - 0x3bc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0x3bc]
mov edx, dword [eax + 4]
lea ecx, [edx - 0x18]
mov dword [ebp + edx - 0x3c0], ecx
lea eax, [ebp - 0x34c]
mov dword [ebp - 4], 0x13
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.1000f969
add esp, 4
mov eax, edi
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.1002736e
mov esp, ebp
pop ebp
ret