Function at 0x5b7690
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x40
call fcn.006db7b0
mov eax, dword [0x7eba44]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 0
push str.OPENSSL_WIN32_UTF8
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x5b799d
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x24], 8
call dword [sym.imp.KERNEL32.dll_GetACP]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xc42c
je 0x5b7748
cmp dword [ebp - 8], 0xc42d
je 0x5b7748
cmp dword [ebp - 8], 0xc42e
je 0x5b7748
cmp dword [ebp - 8], 0xc431
je 0x5b7748
cmp dword [ebp - 8], 0xc433
je 0x5b7748
cmp dword [ebp - 8], 0xc435
je 0x5b7748
cmp dword [ebp - 8], 0xdeaa
jb 0x5b7739
cmp dword [ebp - 8], 0xdeb3
jbe 0x5b7748
cmp dword [ebp - 8], 0xfde8
je 0x5b7748
cmp dword [ebp - 8], 0x2a
jne 0x5b774f
mov dword [ebp - 0x24], 0
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jle 0x5b7804
mov eax, dword [ebp - 0x18]
shl eax, 1
push eax
call fcn.005b75f0
add esp, 4
test eax, eax
je 0x5b77f7
mov ecx, dword [ebp - 0x18]
shl ecx, 1
push ecx
call fcn.005b75f0
add esp, 4
cmp eax, 0x400
ja 0x5b77c7
mov edx, dword [ebp - 0x18]
shl edx, 1
push edx
call fcn.005b75f0
add esp, 4
call fcn.006db840
mov dword [ebp - 0x38], esp
push 0xcccc
mov eax, dword [ebp - 0x38]
push eax
call fcn.005b7630
add esp, 8
mov dword [ebp - 0x28], eax
jmp 0x5b77ef
push 0xdddd
mov ecx, dword [ebp - 0x18]
shl ecx, 1
push ecx
call fcn.005b75f0
add esp, 4
push eax
call fcn.006e6b6f
add esp, 4
push eax
call fcn.005b7630
add esp, 8
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], edx
jmp 0x5b77fe
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x5b7840
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jle 0x5b7840
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x5b78da
mov ecx, dword [ebp - 0xc]
shl ecx, 1
push ecx
call fcn.005b75f0
add esp, 4
test eax, eax
je 0x5b78cd
mov edx, dword [ebp - 0xc]
shl edx, 1
push edx
call fcn.005b75f0
add esp, 4
cmp eax, 0x400
ja 0x5b789d
mov eax, dword [ebp - 0xc]
shl eax, 1
push eax
call fcn.005b75f0
add esp, 4
call fcn.006db840
mov dword [ebp - 0x40], esp
push 0xcccc
mov ecx, dword [ebp - 0x40]
push ecx
call fcn.005b7630
add esp, 8
mov dword [ebp - 0x30], eax
jmp 0x5b78c5
push 0xdddd
mov edx, dword [ebp - 0xc]
shl edx, 1
push edx
call fcn.005b75f0
add esp, 4
push eax
call fcn.006e6b6f
add esp, 4
push eax
call fcn.005b7630
add esp, 8
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
jmp 0x5b78d4
mov dword [ebp - 0x34], 0
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
je 0x5b7915
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, dword [ebp - 0xc]
jae 0x5b7915
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov edx, dword [ebp - 0x14]
push edx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jle 0x5b7931
push 0x46
push str.cryptogetenv.c
mov eax, dword [ebp - 0x20]
push eax
call fcn.00546e20
add esp, 0xc
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x5b7974
push 0
push 0
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp - 0x14]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x5b7974
push 0x4c
push str.cryptogetenv.c
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00546e80
add esp, 0xc
mov dword [ebp - 0x1c], 0
cmp dword [ebp - 0x10], 0
je 0x5b7986
mov edx, dword [ebp - 0x10]
push edx
call fcn.005b7650
add esp, 4
cmp dword [ebp - 0x14], 0
je 0x5b7998
mov eax, dword [ebp - 0x14]
push eax
call fcn.005b7650
add esp, 4
mov eax, dword [ebp - 0x1c]
jmp 0x5b79b6
call fcn.00575e80
test eax, eax
je 0x5b79aa
xor eax, eax
jmp 0x5b79b6
mov ecx, dword [ebp + 8]
push ecx
call fcn.006f2cff
add esp, 4
lea esp, [ebp - 0x40]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006dbabd
mov esp, ebp
pop ebp
ret