Function at 0x10008850
Capabilities:
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004da65
mov eax, dword fs:[0]
push eax
sub esp, 0x400
mov eax, dword [0x10060080]
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 - 0x220], edi
push 0x104
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x3d8], edi
push eax
push str.c:programdata_audioconfig.txt
mov dword [ebp - 0x3c0], 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x100088b8
push 9
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0xb8
lea eax, [ebp - 0x3bc]
push 0
push eax
call fcn.1002b190
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x3bc]
call fcn.1000be90
push 0x34
mov dword [ebp - 4], 0
call fcn.10029242
mov esi, eax
mov dword [ebp - 0x220], 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.1002b190
add esp, 0x10
lea ecx, [ebp - 0x254]
push 0
call fcn.10010d5a
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 0x10059050
push eax
call fcn.10010bca
lea eax, [ebp - 0x40c]
push eax
call fcn.100114af
movups xmm0, xmmword [eax]
movups xmm1, xmmword [eax + 0x10]
movq xmm2, qword [eax + 0x20]
mov eax, dword [eax + 0x28]
movups xmmword [esi + 8], xmm0
movups xmmword [esi + 0x18], xmm1
movq qword [esi + 0x28], xmm2
mov dword [esi + 0x30], eax
lea eax, [ebp - 0x254]
mov byte [ebp - 4], 0xa
push eax
call fcn.10010c15
mov eax, dword [ebp - 0x228]
add esp, 0x10
test eax, eax
je 0x100089e0
push eax
call fcn.1002f260
add esp, 4
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x228], 0
test eax, eax
je 0x100089fd
push eax
call fcn.1002f260
add esp, 4
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x230], 0
test eax, eax
je 0x10008a1a
push eax
call fcn.1002f260
add esp, 4
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x238], 0
test eax, eax
je 0x10008a37
push eax
call fcn.1002f260
add esp, 4
mov eax, dword [ebp - 0x248]
mov dword [ebp - 0x240], 0
test eax, eax
je 0x10008a54
push eax
call fcn.1002f260
add esp, 4
mov eax, dword [ebp - 0x250]
mov dword [ebp - 0x248], 0
test eax, eax
je 0x10008a71
push eax
call fcn.1002f260
add esp, 4
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x250], 0
call fcn.10010db2
lea eax, [ebp - 0x3d0]
mov dword [esi], vtable.std::codecvt_utf8_wchar_t__1114111__0_.0
push eax
mov byte [ebp - 4], 0
call fcn.10010caa
mov byte [ebp - 4], 0xb
push dword [eax + 4]
call fcn.10010c2f
mov ecx, dword [0x10061db4]
add esp, 8
mov dword [ebp - 0x3c4], eax
test ecx, ecx
jne 0x10008af7
push ecx
lea ecx, [ebp - 0x220]
call fcn.10010d5a
cmp dword [0x10061db4], 0
jne 0x10008ae0
mov eax, dword [0x10061da8]
inc eax
mov dword [0x10061da8], eax
mov dword [0x10061db4], eax
lea ecx, [ebp - 0x220]
call fcn.10010db2
mov eax, dword [ebp - 0x3c4]
mov ecx, dword [0x10061db4]
push ecx
push esi
push eax
call fcn.10013652
mov eax, dword [ebp - 0x3c4]
add esp, 0xc
mov dword [eax + 0x10], 0
mov esi, dword [ebp - 0x3c4]
mov dword [ebp - 0x220], esi
mov eax, dword [esi + 0x18]
cmp eax, 0x10058fac
je 0x10008b72
test eax, eax
je 0x10008b32
push eax
call fcn.1002f260
add esp, 4
mov dword [esi + 0x18], 0
mov esi, 0x10058fac
nop
inc esi
cmp byte [esi], 0
jne 0x10008b40
inc esi
sub esi, 0x10058fac
push esi
call fcn.1002f270
mov ecx, dword [ebp - 0x220]
add esp, 4
mov dword [ecx + 0x18], eax
test eax, eax
je 0x10008b72
push esi
push 0x10058fac
push eax
call fcn.1002ac00
add esp, 0xc
lea eax, [ebp - 0x3c8]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x3e0]
push eax
mov eax, dword [ebp - 0x3bc]
lea ecx, [ebp - 0x3bc]
add ecx, dword [eax + 4]
call fcn.1000c180
mov ecx, dword [ebp - 0x3dc]
test ecx, ecx
je 0x10008bb5
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x10008bb5
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov ecx, dword [ebp - 0x3c4]
test ecx, ecx
je 0x10008bd2
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x10008bd2
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov ecx, dword [ebp - 0x3cc]
test ecx, ecx
je 0x10008bef
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x10008bef
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push 0xb0
lea eax, [ebp - 0x304]
push 0
push eax
call fcn.1002b190
xorps xmm0, xmm0
mov dword [ebp - 0x304], 0x10059098
xor eax, eax
mov dword [ebp - 0x2f4], 0x10059090
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 - 0x3c0], 2
lea ecx, [ebp - 0x304]
push eax
call fcn.1000cb20
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.1000cfc0
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.1000aa40
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 - 0x3c0], 0x22
movq qword [ebp - 0x3d4], xmm0
cmp al, 2
je 0x10008de6
mov eax, dword [ebp - 0x2cc]
mov ecx, dword [eax]
test ecx, ecx
je 0x10008de6
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 0x10008e27
xor eax, eax
test byte [ebp - 0x2b0], 4
jne 0x10008e1b
mov eax, dword [ebp - 0x2d0]
mov esi, dword [eax]
xor eax, eax
test esi, esi
je 0x10008e1b
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
mov eax, ecx
jmp 0x10008e27
mov ecx, dword [ebp - 0x3d0]
mov edx, dword [ebp - 0x3d4]
test edx, edx
je 0x10008e5f
cmp eax, 7
ja 0x10008e49
lea esi, [ecx + ecx]
mov dword [edi + 0x10], ecx
push esi
push edx
push edi
call fcn.1002ac00
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x10008e5f
push edx
mov byte [ebp - 0x220], 0
push dword [ebp - 0x220]
push ecx
mov ecx, edi
call fcn.10005e70
lea ecx, [ebp - 0x304]
call fcn.10008fa0
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.1000bac0
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.1001088f
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.10029203
mov esp, ebp
pop ebp
ret