Function at 0x5af530
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2c
call fcn.006f5ae0
push 0
push 0
push str.OPENSSL_WIN32_UTF8
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x5af79d
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x20], 8
call dword [sym.imp.KERNEL32.dll_GetACP]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xc42c
je 0x5af5de
cmp dword [ebp - 4], 0xc42d
je 0x5af5de
cmp dword [ebp - 4], 0xc42e
je 0x5af5de
cmp dword [ebp - 4], 0xc431
je 0x5af5de
cmp dword [ebp - 4], 0xc433
je 0x5af5de
cmp dword [ebp - 4], 0xc435
je 0x5af5de
cmp dword [ebp - 4], 0xdeaa
jb 0x5af5cf
cmp dword [ebp - 4], 0xdeb3
jbe 0x5af5de
cmp dword [ebp - 4], 0xfde8
je 0x5af5de
cmp dword [ebp - 4], 0x2a
jne 0x5af5e5
mov dword [ebp - 0x20], 0
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jle 0x5af64f
mov eax, dword [ebp - 0x18]
shl eax, 1
push eax
call fcn.005af490
add esp, 4
test eax, eax
je 0x5af642
push 0xdddd
mov ecx, dword [ebp - 0x18]
shl ecx, 1
push ecx
call fcn.005af490
add esp, 4
push eax
call fcn.006fa499
add esp, 4
push eax
call fcn.005af4d0
add esp, 8
mov dword [ebp - 0x24], eax
jmp 0x5af649
mov dword [ebp - 0x24], 0
mov edx, dword [ebp - 0x24]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
je 0x5af68b
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jle 0x5af68b
push 0
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x5af6da
mov eax, dword [ebp - 0x10]
shl eax, 1
push eax
call fcn.005af490
add esp, 4
test eax, eax
je 0x5af6cd
push 0xdddd
mov ecx, dword [ebp - 0x10]
shl ecx, 1
push ecx
call fcn.005af490
add esp, 4
push eax
call fcn.006fa499
add esp, 4
push eax
call fcn.005af4d0
add esp, 8
mov dword [ebp - 0x28], eax
jmp 0x5af6d4
mov dword [ebp - 0x28], 0
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
je 0x5af715
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, dword [ebp - 0x10]
jae 0x5af715
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jle 0x5af731
push 0x46
push str.cryptogetenv.c
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00574830
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x5af774
push 0
push 0
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0xc]
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x5af774
push 0x4c
push str.cryptogetenv.c
mov edx, dword [ebp - 0x14]
push edx
call fcn.00574890
add esp, 0xc
mov dword [ebp - 0x14], 0
cmp dword [ebp - 8], 0
je 0x5af786
mov eax, dword [ebp - 8]
push eax
call fcn.005af4f0
add esp, 4
cmp dword [ebp - 0xc], 0
je 0x5af798
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.005af4f0
add esp, 4
mov eax, dword [ebp - 0x14]
jmp 0x5af7b6
call fcn.00574820
test eax, eax
je 0x5af7aa
xor eax, eax
jmp 0x5af7b6
mov edx, dword [ebp + 8]
push edx
call fcn.00709ee4
add esp, 4
mov esp, ebp
pop ebp
ret