Function at 0x5ff5d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x40
call fcn.007081d0
mov eax, dword [0x7d0e44]
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 0x5ff8df
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 0x5ff688
cmp dword [ebp - 8], 0xc42d
je 0x5ff688
cmp dword [ebp - 8], 0xc42e
je 0x5ff688
cmp dword [ebp - 8], 0xc431
je 0x5ff688
cmp dword [ebp - 8], 0xc433
je 0x5ff688
cmp dword [ebp - 8], 0xc435
je 0x5ff688
cmp dword [ebp - 8], 0xdeaa
jb 0x5ff679
cmp dword [ebp - 8], 0xdeb3
jbe 0x5ff688
cmp dword [ebp - 8], 0xfde8
je 0x5ff688
cmp dword [ebp - 8], 0x2a
jne 0x5ff68f
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 0x5ff745
mov eax, dword [ebp - 0x18]
shl eax, 1
push eax
call fcn.005ff530
add esp, 4
test eax, eax
je 0x5ff738
mov ecx, dword [ebp - 0x18]
shl ecx, 1
push ecx
call fcn.005ff530
add esp, 4
cmp eax, 0x400
ja 0x5ff707
mov edx, dword [ebp - 0x18]
shl edx, 1
push edx
call fcn.005ff530
add esp, 4
call fcn.00708b30
mov dword [ebp - 0x38], esp
push 0xcccc
mov eax, dword [ebp - 0x38]
push eax
call fcn.005ff570
add esp, 8
mov dword [ebp - 0x28], eax
jmp 0x5ff730
push 0xdddd
mov ecx, dword [ebp - 0x18]
shl ecx, 1
push ecx
call fcn.005ff530
add esp, 4
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
push eax
call fcn.005ff570
add esp, 8
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], edx
jmp 0x5ff73f
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x5ff781
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 0x5ff781
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 0x5ff81c
mov ecx, dword [ebp - 0xc]
shl ecx, 1
push ecx
call fcn.005ff530
add esp, 4
test eax, eax
je 0x5ff80f
mov edx, dword [ebp - 0xc]
shl edx, 1
push edx
call fcn.005ff530
add esp, 4
cmp eax, 0x400
ja 0x5ff7de
mov eax, dword [ebp - 0xc]
shl eax, 1
push eax
call fcn.005ff530
add esp, 4
call fcn.00708b30
mov dword [ebp - 0x40], esp
push 0xcccc
mov ecx, dword [ebp - 0x40]
push ecx
call fcn.005ff570
add esp, 8
mov dword [ebp - 0x30], eax
jmp 0x5ff807
push 0xdddd
mov edx, dword [ebp - 0xc]
shl edx, 1
push edx
call fcn.005ff530
add esp, 4
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
push eax
call fcn.005ff570
add esp, 8
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
jmp 0x5ff816
mov dword [ebp - 0x34], 0
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
je 0x5ff857
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 0x5ff857
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 0x5ff873
push 0x46
push str.cryptogetenv.c
mov eax, dword [ebp - 0x20]
push eax
call fcn.005135a0
add esp, 0xc
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x5ff8b6
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 0x5ff8b6
push 0x4c
push str.cryptogetenv.c
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00513600
add esp, 0xc
mov dword [ebp - 0x1c], 0
cmp dword [ebp - 0x10], 0
je 0x5ff8c8
mov edx, dword [ebp - 0x10]
push edx
call fcn.005ff590
add esp, 4
cmp dword [ebp - 0x14], 0
je 0x5ff8da
mov eax, dword [ebp - 0x14]
push eax
call fcn.005ff590
add esp, 4
mov eax, dword [ebp - 0x1c]
jmp 0x5ff8f9
call fcn.00453470
test eax, eax
je 0x5ff8ec
xor eax, eax
jmp 0x5ff8f9
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
lea esp, [ebp - 0x40]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.007081b5
mov esp, ebp
pop ebp
ret