Function at 0x10030770
Capabilities:
Access peb ldr_data
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10038719
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2e0
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0
mov dword [ebp - 4], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0x10], 0
xor eax, eax
mov dword [edi + 0x14], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 7
mov word [edi + 0x18], ax
mov byte [ebp - 4], 3
lea esi, [edi + 0x30]
mov dword [ebp - 0x10], esi
mov dword [esi], eax
push 0x24
mov dword [esi + 4], eax
mov dword [esi + 8], eax
call fcn.10035016
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.100085e0
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 0x10030a69
lea eax, [ebp - 0x2e8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x10030a69
lea ecx, [ebp - 0x78]
mov dword [ebp - 0xe0], 0x10044428
mov dword [ebp - 0xd0], 0x10044430
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::constructor_void_]
push 0
lea eax, [ebp - 0xc8]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0xe0]
mov dword [ebp - 0x10], 1
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::constructor_class_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t____]
mov dword [ebp - 4], 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 dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::constructor_void_]
mov dword [ebp - 0xc8], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov edx, str.srv
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xd0]
call fcn.100317c0
lea edx, [ebp - 0x2e8]
mov ecx, eax
call fcn.100317c0
mov edx, str.Symbolshttp:__msdl.microsoft.com_download_symbols
mov ecx, eax
call fcn.100317c0
mov byte [ebp - 4], 0xa
xor eax, eax
mov ecx, dword [ebp - 0x8c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 0x10], 5
test cl, 2
jne 0x100309a7
mov eax, dword [ebp - 0xa8]
mov edx, dword [eax]
test edx, edx
je 0x100309a7
cmp edx, dword [ebp - 0x90]
mov eax, dword [ebp - 0xb8]
cmovb edx, dword [ebp - 0x90]
mov ecx, dword [eax]
sub edx, ecx
sar edx, 1
push edx
push ecx
jmp 0x100309d2
test cl, 4
jne 0x100309da
mov eax, dword [ebp - 0xac]
mov ecx, dword [eax]
test ecx, ecx
je 0x100309da
mov eax, dword [ebp - 0xbc]
mov edx, dword [eax]
mov eax, dword [ebp - 0x9c]
mov eax, dword [eax]
add eax, eax
sub eax, edx
add eax, ecx
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x28]
call fcn.100078a0
lea eax, [ebp - 0x28]
push eax
lea ecx, [edi + 0x18]
call fcn.10007640
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x10030a22
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10030a18
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10030a18
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10035360
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.10031660
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 ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret