Function at 0x526150
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push 0x90
call fcn.00529210
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x52616f
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0x90
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
push str..sentry_native
call fcn.00535a50
push str.SENTRY_DSN
mov dword [ebx + 0x2c], eax
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
push dword [ebx + 8]
mov esi, eax
call fcn.00534020
push esi
call fcn.005342f0
push str.SENTRY_DEBUG
mov dword [ebx + 8], eax
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 0x20
test eax, eax
je 0x5261ed
mov ecx, 0x57a5fc
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x5261e0
test dl, dl
je 0x5261dc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x5261e0
add eax, 2
add ecx, 2
test dl, dl
jne 0x5261c0
xor eax, eax
jmp 0x5261e5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x5261ed
mov al, 1
jmp 0x5261ef
xor al, al
push 0xc
mov byte [ebx + 0x40], al
mov dword [ebx + 0x34], 0x5351d0
mov dword [ebx + 0x38], 0
call fcn.00529210
add esp, 4
test eax, eax
je 0x526232
movq xmm0, qword [str.sentry_http]
movq qword [eax], xmm0
mov cx, word [0x5974ac]
mov word [eax + 8], cx
mov cl, byte [0x5974ae]
mov byte [eax + 0xa], cl
mov byte [eax + 0xb], 0
mov esi, dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wgetenv]
push str.SENTRY_RELEASE
mov dword [ebx + 0x20], eax
call esi
push eax
call fcn.00533b90
push str.SENTRY_ENVIRONMENT
mov dword [ebx + 0xc], eax
call esi
push eax
call fcn.00533b90
add esp, 0x10
mov dword [ebx + 0x10], eax
pop esi
test eax, eax
jne 0x52628f
push 0xb
call fcn.00529210
add esp, 4
test eax, eax
je 0x52628c
movq xmm0, qword [str.production]
movq qword [eax], xmm0
mov cx, word [0x597500]
mov word [eax + 8], cx
mov byte [eax + 0xa], 0
mov dword [ebx + 0x10], eax
push dword [ebx + 0x24]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
push 0xe
call fcn.00529210
add esp, 8
test eax, eax
je 0x5262c7
movq xmm0, qword [str.sentry.native]
movq qword [eax], xmm0
mov ecx, dword [0x59750c]
mov dword [eax + 8], ecx
mov cl, byte [0x597510]
mov byte [eax + 0xc], cl
mov byte [eax + 0xd], 0
mov dword [ebx + 0x24], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00533c60
push dword [ebx + 0x24]
lea eax, [ebp - 0xc]
push eax
call fcn.00525d80
mov edx, dword [ebp - 0xc]
add esp, 0xc
test edx, edx
je 0x5262f9
mov ecx, dword [ebp - 4]
lea eax, [ecx + 2]
cmp eax, dword [ebp - 8]
ja 0x5262f9
lea eax, [edx + ecx]
jmp 0x52630b
lea eax, [ebp - 0xc]
push 2
push eax
call fcn.00533ce0
add esp, 8
test eax, eax
je 0x52631c
mov byte [eax], 0x2f
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
inc ecx
mov dword [ebp - 4], ecx
mov byte [ecx + eax], 0
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x526333
mov edx, dword [ebp - 4]
lea eax, [edx + 6]
cmp eax, dword [ebp - 8]
ja 0x526333
lea eax, [ecx + edx]
jmp 0x526345
lea eax, [ebp - 0xc]
push 6
push eax
call fcn.00533ce0
add esp, 8
test eax, eax
je 0x526366
mov ecx, dword [str.0.6.7]
mov dword [eax], ecx
mov cl, byte [0x597518]
mov byte [eax + 4], cl
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add ecx, 5
mov dword [ebp - 4], ecx
mov byte [ecx + eax], 0
push dword [ebx + 0x28]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
lea eax, [ebp - 0xc]
push eax
call fcn.00533c80
add esp, 8
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x3c], 0x64
mov dword [ebx + 0x7c], 0xffffffff
mov byte [ebx + 0x41], 1
mov word [ebx + 0x43], 0
call fcn.00537f00
mov dword [ebx + 0x74], eax
call fcn.005389e0
movsd xmm0, qword [0x597520]
movsd qword [ebx], xmm0
xorps xmm0, xmm0
mov dword [ebx + 0x50], eax
mov eax, ebx
mov dword [ebx + 0x80], 1
mov dword [ebx + 0x88], 0x7d0
mov dword [ebx + 0x8c], 0
movsd qword [ebx + 0x68], xmm0
mov dword [ebx + 0x70], 0
pop ebx
mov esp, ebp
pop ebp
ret