Function at 0x46afe0
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d48f7
mov eax, dword fs:[0]
push eax
sub esp, 0x1ac
mov eax, dword [0x689140]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
call dword [sym.imp.ntdll.dll_RtlDllShutdownInProgress]
test al, al
je 0x46b02a
mov eax, 6
jmp 0x46b3c7
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov edx, eax
lea ecx, [ebp - 0xc0]
call fcn.0044d630
push eax
mov edx, 0x62fca4
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x80]
call fcn.00408b60
add esp, 4
lea ecx, [ebp - 0xc0]
call fcn.00428f60
push 0x40
lea eax, [ebp - 0x50]
mov dword [ebp - 4], 1
push 0
push eax
call fcn.0059a470
add esp, 0xc
lea ecx, [ebp - 0x50]
cmp dword [ebp - 0x6c], 7
lea eax, [ebp - 0x80]
cmova eax, dword [ebp - 0x80]
push 0x20
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x46b2e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x46b13d
mov eax, dword [0x628468]
mov edx, 7
movq xmm0, qword [str.dump]
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x8c], 0x43324130
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x88], 0x36374130
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0xa4]
mov dword [ebp - 0x94], ecx
lea ecx, [ebp - 0x1b8]
push eax
movq qword [ebp - 0xa4], xmm0
mov dword [ebp - 0x90], 0x38
call fcn.00425500
add esp, 4
push str.Could_not_access_environment_variables__crash_handler_will_be_installed_anyway.
lea ecx, [ebp - 0x1b8]
mov byte [ebp - 4], 2
call fcn.00426ca0
lea ecx, [ebp - 0x1b8]
mov byte [ebp - 4], 1
call fcn.00426780
push dword [ebp + 0x14]
lea ecx, [edi + 8]
push dword [ebp + 0x10]
push ebx
push esi
call fcn.00461840
mov esi, eax
cmp esi, 1
je 0x46b15c
test esi, esi
jne 0x46b3bd
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, 0x400000
je 0x46b1fd
mov eax, dword [0x628468]
mov edx, 5
movq xmm0, qword [str.dump]
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x8c], 0x43324130
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x88], 0x36374130
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0xa4]
mov dword [ebp - 0x94], ecx
lea ecx, [ebp - 0x1b8]
push eax
movq qword [ebp - 0xa4], xmm0
mov dword [ebp - 0x90], 0x41
call fcn.00425500
add esp, 4
push 0x62f4b8
lea ecx, [ebp - 0x1b8]
mov byte [ebp - 4], 3
call fcn.00426ca0
lea ecx, [ebp - 0x1b8]
mov byte [ebp - 4], 1
call fcn.00426780
inc dword [edi + 4]
lea ecx, [ebp - 0x68]
mov edx, 0x400000
call fcn.0045c0c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x68]
cmp dword [ebp - 0x54], 7
lea eax, [ebp - 0x80]
cmova ecx, dword [ebp - 0x68]
cmp dword [ebp - 0x6c], 7
push ecx
cmova eax, dword [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov eax, dword [0x628468]
mov edx, 2
movq xmm0, qword [str.dump]
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x8c], 0x43324130
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x88], 0x36374130
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0xa4]
mov dword [ebp - 0x94], ecx
lea ecx, [ebp - 0x1b8]
push eax
movq qword [ebp - 0xa4], xmm0
mov dword [ebp - 0x90], 0x46
call fcn.00425500
add esp, 4
push str.Crash_handler_installed_successfully_process_wide_from_module
lea ecx, [ebp - 0x1b8]
mov byte [ebp - 4], 5
call fcn.00426ca0
push ecx
mov ecx, eax
call fcn.00408820
lea ecx, [ebp - 0x68]
push ecx
mov ecx, eax
call fcn.00428480
push 0x62314c
mov ecx, eax
call fcn.00426ca0
lea ecx, [ebp - 0x1b8]
call fcn.00426780
lea ecx, [ebp - 0x68]
call fcn.00428f60
jmp 0x46b3bd
mov ecx, dword [edi + 4]
mov edx, 2
mov dword [ebp - 0x8c], 0x43324130
test ecx, ecx
mov dword [ebp - 0x88], 0x36374130
lea eax, [ecx + 1]
mov ecx, dword [ebp - 0x88]
mov dword [edi + 4], eax
mov eax, dword [0x628468]
movq xmm0, qword [str.dump]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x68]
mov dword [ebp - 0x58], ecx
lea ecx, [ebp - 0x1b8]
movq qword [ebp - 0x68], xmm0
push eax
jle 0x46b36c
mov dword [ebp - 0x54], 0x4e
call fcn.00425500
add esp, 4
push str.Crash_handler_installed_multiple_times_from_this_binary__ignoring_additional_install_request
lea ecx, [ebp - 0x1b8]
mov byte [ebp - 4], 6
call fcn.00426ca0
lea ecx, [ebp - 0x1b8]
call fcn.00426780
jmp 0x46b3b8
mov dword [ebp - 0x54], 0x53
call fcn.00425500
add esp, 4
push str.Crash_handler_is_already_resident_in_this_process._Enabling_only_manual_dumping_from_this_binary.
lea ecx, [ebp - 0x1b8]
mov byte [ebp - 4], 7
call fcn.00426ca0
lea ecx, [ebp - 0x1b8]
mov byte [ebp - 4], 1
call fcn.00426780
push dword [ebp + 0x14]
lea ecx, [edi + 8]
push 0
push ebx
push esi
call fcn.00461840
mov esi, eax
cmp esi, 1
je 0x46b3b8
test esi, esi
jne 0x46b3bd
mov esi, 2
lea ecx, [ebp - 0x80]
call fcn.00428f60
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059860b
mov esp, ebp
pop ebp
ret 0x10