Function at 0x411fd0
Capabilities:
Query environment variable
Terminate process

Disassembly:
mov eax, 0x428
call fcn.004403c0
mov eax, dword [0x470324]
xor eax, esp
mov dword [esp + 0x424], eax
mov eax, dword [esp + 0x430]
push ebx
mov ebx, dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
push esi
push edi
push str.OPENSSL_CONF
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 0
call ebx
add esp, 4
test eax, eax
je 0x412036
push 0x6a
push str.appsopenssl.c
push eax
call sub.libcrypto_1_1.dll_CRYPTO_strdup
add esp, 0xc
mov edx, eax
jmp 0x4120a9
call sub.libcrypto_1_1.dll_X509_get_default_cert_area
mov esi, eax
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x412042
sub ecx, edx
push str.config_filename_buffer
lea eax, [ecx + 0xd]
push eax
call fcn.00437320
mov edx, eax
add esp, 8
mov ecx, edx
sub ecx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x412062
lea edi, [edx - 1]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x412072
mov ax, word [0x444fbc]
lea ecx, [edx - 1]
mov word [edi], ax
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x412088
mov eax, dword [str.openssl.cnf]
mov dword [ecx], eax
mov eax, dword [0x44db28]
mov dword [ecx + 4], eax
mov eax, dword [0x44db2c]
mov dword [ecx + 8], eax
push 0x8001
mov dword [0x4703f0], edx
call fcn.00437de0
push 0x8001
mov dword [0x4703f4], eax
call fcn.00437e10
push 0x8001
mov dword [0x4703f8], eax
call fcn.00437db0
mov dword [0x4703fc], eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x448]
push eax
call fcn.0043b2a0
push str.OPENSSL_DEBUG_MEMORY
call ebx
add esp, 0x18
test eax, eax
je 0x412134
mov ecx, 0x44db48
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x412121
test dl, dl
je 0x41211d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x412121
add eax, 2
add ecx, 2
test dl, dl
jne 0x412101
xor eax, eax
jmp 0x412126
sbb eax, eax
or eax, 1
test eax, eax
jne 0x412134
push 1
call sub.libcrypto_1_1.dll_CRYPTO_set_mem_debug
add esp, 4
push 1
call sub.libcrypto_1_1.dll_CRYPTO_mem_ctrl
push str.OPENSSL_FIPS
call ebx
add esp, 8
test eax, eax
je 0x412179
push str.FIPS_mode_not_supported._n
push dword [0x4703fc]
call sub.libcrypto_1_1.dll_BIO_printf
mov ecx, dword [esp + 0x438]
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004403ed
add esp, 0x428
ret
push 0
push 0
push 0x7640
call sub.libssl_1_1.dll_OPENSSL_init_ssl
add esp, 0xc
test eax, eax
je 0x412346
call fcn.0043abb0
call fcn.004123f0
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x10], eax
push dword [ecx]
call fcn.00436290
mov ebx, dword [esp + 0x14]
mov esi, eax
lea eax, [esp + 0x24]
mov dword [esp + 0x28], esi
push eax
push ebx
call sub.libcrypto_1_1.dll_OPENSSL_LH_retrieve
add esp, 0xc
test eax, eax
je 0x4121e7
mov ecx, dword [esp + 0xc]
mov dword [ecx], esi
push dword [esp + 0xc]
mov eax, dword [eax + 8]
push dword [esp + 0x43c]
call eax
add esp, 8
mov esi, eax
jmp 0x41236e
mov ecx, dword [esp + 0x438]
cmp ecx, 1
je 0x412222
mov eax, dword [esp + 0xc]
dec ecx
add eax, 4
mov dword [esp + 0x438], ecx
push eax
push ecx
push ebx
mov dword [esp + 0x18], eax
call fcn.00411bf0
mov esi, eax
add esp, 0xc
test esi, esi
jns 0x41236e
xor esi, esi
jmp 0x41236e
push ebp
mov ebp, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
nop dword [eax]
lea esi, [esp + 0x34]
mov edi, 0x400
mov ebx, 1
nop
push 1
mov byte [esi], 0
call ebp
push eax
test ebx, ebx
mov ecx, 0x44dbc0
mov eax, str.OpenSSL_
cmove eax, ecx
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputs]
push 1
call ebp
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
push 0
call ebp
push eax
push edi
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
add esp, 0x24
test eax, eax
je 0x41236b
cmp byte [esi], 0
je 0x41236b
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x412290
sub eax, edx
cmp eax, 1
jle 0x4122b2
cmp byte [eax + esi - 2], 0x5c
jne 0x4122b2
sub eax, 2
xor ebx, ebx
sub edi, eax
add esi, eax
test edi, edi
jg 0x412240
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00437950
add esp, 8
test eax, eax
je 0x41232c
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x1c]
call fcn.00411bf0
add esp, 0xc
cmp eax, 0xffffffff
je 0x41236b
test eax, eax
je 0x412302
mov eax, dword [esp + 0x20]
push dword [eax]
push str.error_in__s_n
push dword [0x4703fc]
call sub.libcrypto_1_1.dll_BIO_printf
add esp, 0xc
push 0
push 0
push 0xb
push dword [0x4703f8]
call sub.libcrypto_1_1.dll_BIO_ctrl
push 0
push 0
push 0xb
push dword [0x4703fc]
call sub.libcrypto_1_1.dll_BIO_ctrl
add esp, 0x20
jmp 0x412230
push str.Cant_parse__no_memory___n
push dword [0x4703fc]
call sub.libcrypto_1_1.dll_BIO_printf
add esp, 8
mov esi, 1
jmp 0x41236d
push str.FATAL:_Startup_failure__dev_note:_apps_startup___failed__n
push dword [0x4703fc]
call sub.libcrypto_1_1.dll_BIO_printf
push dword [0x4703fc]
call sub.libcrypto_1_1.dll_ERR_print_errors
add esp, 0xc
mov esi, 1
jmp 0x41236e
xor esi, esi
pop ebp
push 0xff
push str.appsopenssl.c
push 0
call sub.libcrypto_1_1.dll_CRYPTO_free
push pe_nt_image_headers32
push str.appsopenssl.c
push dword [0x4703f0]
call sub.libcrypto_1_1.dll_CRYPTO_free
push dword [esp + 0x28]
call fcn.00411e30
push 0x102
push str.appsopenssl.c
push dword [esp + 0x40]
call sub.libcrypto_1_1.dll_CRYPTO_free
call fcn.0043aee0
push dword [0x4703f4]
call sub.libcrypto_1_1.dll_BIO_free
push dword [0x4703f8]
call sub.libcrypto_1_1.dll_BIO_free_all
call fcn.00411b80
push dword [0x4703fc]
call sub.libcrypto_1_1.dll_BIO_free
add esp, 0x34
push esi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3