Function at 0x1008af50
Capabilities:
Access peb ldr_data
Get common file path
Get process heap flags
Get process heap force flags
Query environment variable

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1013feea
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x2d8
mov eax, ecx
push esi
mov dword [ebp - 0x14], eax
push edi
mov dword [eax], 0
mov dword [ebp - 4], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
lea edi, [eax + 0x18]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
xor ecx, ecx
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], cx
lea esi, [eax + 0x30]
mov byte [ebp - 4], 3
mov dword [ebp - 0x18], esi
mov dword [esi], ecx
push 0x24
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
call fcn.1013b121
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 4], eax
lea ecx, [esi + 0xc]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov byte [ebp - 4], 5
mov dword [esi + 0x18], 7
mov dword [esi + 0x1c], 8
mov dword [esi], 0x3f800000
push dword [esi + 4]
push 0x10
call fcn.10062e00
push 0
mov byte [ebp - 4], 6
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x208
lea eax, [ebp - 0x2e8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x2e8]
push 0x104
push eax
push str._NT_SYMBOL_PATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x1008b1bc
lea eax, [ebp - 0x2e8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1008b1bc
push ecx
lea ecx, [ebp - 0xe0]
call fcn.1005a4d0
mov edx, str.srv
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xd0]
call fcn.1005ac30
lea edx, [ebp - 0x2e8]
mov ecx, eax
call fcn.1005ac30
mov edx, str.Symbolshttp:__msdl.microsoft.com_download_symbols
mov ecx, eax
call fcn.1005ac30
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0xe0]
call fcn.1005a3e0
mov esi, eax
cmp edi, esi
je 0x1008b139
mov ecx, dword [edi + 0x14]
cmp ecx, 8
jb 0x1008b109
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x1008b0ff
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008b165
mov eax, edx
push ecx
push eax
call fcn.1013b151
add esp, 8
mov dword [edi + 0x10], 0
xor eax, eax
mov dword [edi + 0x14], 7
mov word [edi], ax
movups xmm0, xmmword [esi]
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ecx, dword [ebp - 0x1c]
cmp ecx, 8
jb 0x1008b175
mov edx, dword [ebp - 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1008b16b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1008b16b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1013b151
add esp, 8
mov eax, dword [ebp - 0xe0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe0], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0xe0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xe4], eax
lea ecx, [ebp - 0xc8]
call fcn.1005a330
lea ecx, [ebp - 0xc0]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x78]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret