Function at 0x10008040
Capabilities:
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004cce5
mov eax, dword fs:[0]
push eax
sub esp, 0x400
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 - 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 0x100080a8
push 9
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0xb8
lea eax, [ebp - 0x3bc]
push 0
push eax
call fcn.1002a4b0
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x3bc]
call fcn.1000b450
push 0x34
mov dword [ebp - 4], 0
call fcn.10028563
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.1002a4b0
add esp, 0x10
lea ecx, [ebp - 0x254]
push 0
call fcn.1001007b
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 0x10058008
push eax
call fcn.1000feea
lea eax, [ebp - 0x40c]
push eax
call fcn.100107d0
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.1000ff35
mov eax, dword [ebp - 0x228]
add esp, 0x10
test eax, eax
je 0x100081d0
push eax
call fcn.1002e580
add esp, 4
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x228], 0
test eax, eax
je 0x100081ed
push eax
call fcn.1002e580
add esp, 4
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x230], 0
test eax, eax
je 0x1000820a
push eax
call fcn.1002e580
add esp, 4
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x238], 0
test eax, eax
je 0x10008227
push eax
call fcn.1002e580
add esp, 4
mov eax, dword [ebp - 0x248]
mov dword [ebp - 0x240], 0
test eax, eax
je 0x10008244
push eax
call fcn.1002e580
add esp, 4
mov eax, dword [ebp - 0x250]
mov dword [ebp - 0x248], 0
test eax, eax
je 0x10008261
push eax
call fcn.1002e580
add esp, 4
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x250], 0
call fcn.100100d3
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.1000ffca
mov byte [ebp - 4], 0xb
push dword [eax + 4]
call fcn.1000ff4f
mov ecx, dword [0x10060d84]
add esp, 8
mov dword [ebp - 0x3c4], eax
test ecx, ecx
jne 0x100082e7
push ecx
lea ecx, [ebp - 0x220]
call fcn.1001007b
cmp dword [0x10060d84], 0
jne 0x100082d0
mov eax, dword [0x10060d78]
inc eax
mov dword [0x10060d78], eax
mov dword [0x10060d84], eax
lea ecx, [ebp - 0x220]
call fcn.100100d3
mov eax, dword [ebp - 0x3c4]
mov ecx, dword [0x10060d84]
push ecx
push esi
push eax
call fcn.10012973
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, 0x10057f64
je 0x10008362
test eax, eax
je 0x10008322
push eax
call fcn.1002e580
add esp, 4
mov dword [esi + 0x18], 0
mov esi, 0x10057f64
nop
inc esi
cmp byte [esi], 0
jne 0x10008330
inc esi
sub esi, 0x10057f64
push esi
call fcn.1002e590
mov ecx, dword [ebp - 0x220]
add esp, 4
mov dword [ecx + 0x18], eax
test eax, eax
je 0x10008362
push esi
push 0x10057f64
push eax
call fcn.10029f20
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.1000b740
mov ecx, dword [ebp - 0x3dc]
test ecx, ecx
je 0x100083a5
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x100083a5
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov ecx, dword [ebp - 0x3c4]
test ecx, ecx
je 0x100083c2
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x100083c2
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov ecx, dword [ebp - 0x3cc]
test ecx, ecx
je 0x100083df
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x100083df
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push 0xb0
lea eax, [ebp - 0x304]
push 0
push eax
call fcn.1002a4b0
xorps xmm0, xmm0
mov dword [ebp - 0x304], 0x10058050
xor eax, eax
mov dword [ebp - 0x2f4], 0x10058048
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.1000c0e0
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.1000c580
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.1000a000
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 0x100085d6
mov eax, dword [ebp - 0x2cc]
mov ecx, dword [eax]
test ecx, ecx
je 0x100085d6
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 0x10008617
xor eax, eax
test byte [ebp - 0x2b0], 4
jne 0x1000860b
mov eax, dword [ebp - 0x2d0]
mov esi, dword [eax]
xor eax, eax
test esi, esi
je 0x1000860b
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 0x10008617
mov ecx, dword [ebp - 0x3d0]
mov edx, dword [ebp - 0x3d4]
test edx, edx
je 0x1000864f
cmp eax, 7
ja 0x10008639
lea esi, [ecx + ecx]
mov dword [edi + 0x10], ecx
push esi
push edx
push edi
call fcn.10029f20
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x1000864f
push edx
mov byte [ebp - 0x220], 0
push dword [ebp - 0x220]
push ecx
mov ecx, edi
call fcn.10005670
lea ecx, [ebp - 0x304]
call fcn.10008780
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.1000b080
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.1000fbaf
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.10028524
mov esp, ebp
pop ebp
ret