Function at 0x10008930
Capabilities:
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004cf75
mov eax, dword fs:[0]
push eax
sub esp, 0x404
mov eax, dword [0x1005f080]
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 0x10008998
push 9
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0xb8
lea eax, [ebp - 0x3bc]
push 0
push eax
call fcn.1002b0c0
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x3bc]
call fcn.1000bef0
push 0x34
mov dword [ebp - 4], 0
call fcn.100292cd
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.1002b0c0
add esp, 0x10
lea ecx, [ebp - 0x254]
push 0
call fcn.10010dea
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 0x10057ef8
push eax
call fcn.10010c5a
lea eax, [ebp - 0x410]
push eax
call fcn.1001155b
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
lea eax, [ebp - 0x254]
mov byte [ebp - 4], 0xa
push eax
call fcn.10010ca5
mov eax, dword [ebp - 0x228]
add esp, 0x10
test eax, eax
je 0x10008ac0
push eax
call fcn.1002f0bb
add esp, 4
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x228], 0
test eax, eax
je 0x10008add
push eax
call fcn.1002f0bb
add esp, 4
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x230], 0
test eax, eax
je 0x10008afa
push eax
call fcn.1002f0bb
add esp, 4
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x238], 0
test eax, eax
je 0x10008b17
push eax
call fcn.1002f0bb
add esp, 4
mov eax, dword [ebp - 0x248]
mov dword [ebp - 0x240], 0
test eax, eax
je 0x10008b34
push eax
call fcn.1002f0bb
add esp, 4
mov eax, dword [ebp - 0x250]
mov dword [ebp - 0x248], 0
test eax, eax
je 0x10008b51
push eax
call fcn.1002f0bb
add esp, 4
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x250], 0
call fcn.10010e42
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.10010d3a
mov byte [ebp - 4], 0xb
push dword [eax + 4]
call fcn.10010cbf
mov ecx, eax
add esp, 8
mov eax, dword [0x10060d84]
mov dword [ebp - 0x3c8], ecx
test eax, eax
jne 0x10008bd7
push eax
lea ecx, [ebp - 0x220]
call fcn.10010dea
cmp dword [0x10060d84], 0
jne 0x10008bc1
mov eax, dword [0x10060d78]
inc eax
mov dword [0x10060d78], eax
mov dword [0x10060d84], eax
lea ecx, [ebp - 0x220]
call fcn.10010e42
mov ecx, dword [ebp - 0x3c8]
mov eax, dword [0x10060d84]
push eax
push esi
push ecx
call fcn.1001371f
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, 0x10057e54
je 0x10008c52
test eax, eax
je 0x10008c12
push eax
call fcn.1002f0bb
add esp, 4
mov dword [esi + 0x18], 0
mov esi, 0x10057e54
nop
inc esi
cmp byte [esi], 0
jne 0x10008c20
inc esi
sub esi, 0x10057e54
push esi
call fcn.1002f0d6
mov ecx, dword [ebp - 0x3c0]
add esp, 4
mov dword [ecx + 0x18], eax
test eax, eax
je 0x10008c52
push esi
push 0x10057e54
push eax
call fcn.1002ab30
add esp, 0xc
lea eax, [ebp - 0x3cc]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x3e4]
push eax
mov eax, dword [ebp - 0x3bc]
lea ecx, [ebp - 0x3bc]
add ecx, dword [eax + 4]
call fcn.1000c1e0
mov ecx, dword [ebp - 0x3e0]
test ecx, ecx
je 0x10008c95
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
mov ecx, eax
test ecx, ecx
je 0x10008c95
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [ebp - 0x3c8]
test ecx, ecx
je 0x10008cb2
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
mov ecx, eax
test ecx, ecx
je 0x10008cb2
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [ebp - 0x3d0]
test ecx, ecx
je 0x10008ccf
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
mov ecx, eax
test ecx, ecx
je 0x10008ccf
mov eax, dword [ecx]
push 1
call dword [eax]
push 0xb0
lea eax, [ebp - 0x304]
push 0
push eax
call fcn.1002b0c0
xorps xmm0, xmm0
mov dword [ebp - 0x304], 0x10057f40
xor eax, eax
mov dword [ebp - 0x2f4], 0x10057f38
mov dword [ebp - 0x294], 0
mov dword [ebp - 0x290], 0
mov dword [ebp - 0x28c], 0
mov dword [ebp - 0x288], 0
movlpd qword [ebp - 0x284], xmm0
movlpd qword [ebp - 0x27c], xmm0
mov dword [ebp - 0x274], 0
mov dword [ebp - 0x270], 0
mov dword [ebp - 0x26c], 0
mov dword [ebp - method.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 0x264], 0
mov dword [ebp - 0x260], 0
mov word [ebp - 0x25c], ax
add esp, 4
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x2ec]
mov dword [ebp - 0x3c4], 2
lea ecx, [ebp - 0x304]
push eax
call fcn.1000cb80
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], 0x11
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.1000d020
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], 0x12
push eax
lea ecx, [ebp - 0x2f4]
call fcn.1000ab30
mov byte [ebp - 4], 0x13
xorps xmm0, xmm0
movups xmmword [edi], xmm0
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov eax, dword [ebp - 0x2b0]
and al, 0x22
mov dword [ebp - 0x3c4], 0x22
movq qword [ebp - 0x3d8], xmm0
cmp al, 2
je 0x10008ec6
mov eax, dword [ebp - 0x2cc]
mov ecx, dword [eax]
test ecx, ecx
je 0x10008ec6
mov eax, dword [ebp - 0x2dc]
cmp ecx, dword [ebp - 0x2b4]
cmovb ecx, dword [ebp - 0x2b4]
mov edx, dword [eax]
sub ecx, edx
sar ecx, 1
mov eax, ecx
jmp 0x10008f06
xor eax, eax
test byte [ebp - 0x2b0], 4
jne 0x10008efa
mov eax, dword [ebp - 0x2d0]
mov ecx, dword [eax]
xor eax, eax
test ecx, ecx
je 0x10008efa
mov eax, dword [ebp - 0x2e0]
mov edx, dword [eax]
mov eax, dword [ebp - 0x2c0]
mov eax, dword [eax]
lea ecx, [ecx + eax*2]
sub ecx, edx
sar ecx, 1
mov eax, ecx
jmp 0x10008f06
mov ecx, dword [ebp - 0x3d4]
mov edx, dword [ebp - 0x3d8]
test edx, edx
je 0x10008f5a
cmp eax, 7
ja 0x10008f44
cmp dword [edi + 0x14], 7
mov eax, edi
mov dword [ebp - 0x220], edi
jbe 0x10008f25
mov eax, dword [edi]
mov dword [ebp - 0x220], eax
lea esi, [ecx + ecx]
mov dword [edi + 0x10], ecx
push esi
push edx
push eax
call fcn.1002ab30
mov eax, dword [ebp - 0x220]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax], cx
jmp 0x10008f5a
push edx
mov byte [ebp - 0x3c0], 0
push dword [ebp - 0x3c0]
push ecx
mov ecx, edi
call fcn.10005f20
lea ecx, [ebp - 0x304]
call fcn.10009090
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.1000bb20
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], 0x14
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.1001091f
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.1002928e
mov esp, ebp
pop ebp
ret