Function at 0x1400391b0
Capabilities:
Query environment variable
Set console window title

Disassembly:
push rbp
push r12
push r13
push r15
lea rbp, [rsp - 0x1298]
mov eax, 0x1398
call fcn.14008b280
sub rsp, rax
mov rax, qword [0x1400cb008]
xor rax, rsp
mov qword [rbp + 0x1280], rax
mov r15d, ecx
mov r12, rdx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
xor edx, edx
lea rcx, [rbp - 0x60]
mov r8d, 0x11d8
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x60]
mov byte [rbp + 0x9f0], 1
call fcn.140088390
test eax, eax
jne 0x140039223
mov ecx, dword [rsp + 0x64]
xor ecx, dword [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
xor r13d, r13d
mov byte [0x1400cb9c5], 0
mov byte [0x1400cb8ef], 0
mov byte [0x1400cb8ee], 0
mov byte [0x1400cb8ed], 0
lea ecx, [r13 + 1]
mov dword [0x1400d3ed4], 1
mov dword [0x1400cb9c8], r13d
mov dword [0x1400cb9c0], r13d
mov dword [0x1400cb9cc], r13d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea ecx, [r13 + 1]
mov qword [0x1400cb9b0], rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov qword [0x1400cb9b8], rax
mov qword [0x1400cb9d0], r13
mov dword [0x1400d3eb0], r13d
mov dword [0x1400d3eb8], r13d
call fcn.140085a90
lea rcx, [rsp + 0x68]
call fcn.140088390
test eax, eax
jne 0x1400392b5
lea rcx, [rsp + 0x68]
call fcn.140052ca0
mov qword [rsp + 0x28], r13
lea r8, str.struct_session_
xor r9d, r9d
mov qword [rsp + 0x20], r13
xor edx, edx
xor ecx, ecx
call qword [sym.imp.libcrypto_1_1_x64.dll_CRYPTO_get_ex_new_index]
mov dword [0x1400d3e78], eax
test eax, eax
jns 0x1400392f6
lea r8, str.mydata_index___0
mov edx, 0x5b
lea rcx, str.C:Users_vagrant_buildbotwindows_server_2019_static_msbuildopenvpn_srcopenvpn_ssl_openssl.c
call fcn.14000ed60
int3
mov qword [rsp + 0x13c0], rbx
xor edx, edx
mov qword [rsp + 0x13d0], rsi
mov qword [rsp + 0x13d8], rdi
mov qword [rsp + 0x1390], r14
lea ecx, [rdx + 0x40]
call qword [sym.imp.libcrypto_1_1_x64.dll_OPENSSL_init_crypto]
mov rcx, qword [0x1400cb8f0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [0x1400cb8f0], r13
mov dword [0x1400cb8e8], r13d
mov qword [0x1400cb8f8], r13
movzx edi, byte [rbp + 0x9f0]
lea rcx, [rbp - 0x60]
mov ebx, dword [rbp + 0xa2c]
lea rsi, [0x1400d3e80]
xor edx, edx
mov r8d, 0x11d8
mov r14d, reloc.WS2_32.dll_ntohs
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
mov byte [rbp + 0x9f0], dil
lea ecx, [r14 + 1]
mov dword [rbp + 0xa2c], ebx
movups xmmword [0x1400d3e80], xmm0
mov qword [rbp + 0xa18], rsi
mov qword [rbp + 0x9f8], r13
mov qword [rbp + 0xa00], r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x14003a0bf
mov qword [rax + 8], r13
lea rdx, [rbp + 0x1180]
mov qword [rax], r13
lea rcx, str.SystemRoot
mov r8d, 0x100
mov qword [rbp + 0xa08], rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x14003a08d
cmp eax, 0xff
ja 0x14003a071
mov rcx, qword [0x1400cfa28]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, [rbp + 0x1180]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], r13b
jne 0x140039406
inc eax
mov ecx, 1
movsxd rdi, eax
mov rdx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rbx, rax
test rax, rax
je 0x14003a06b
mov r8, rdi
lea rdx, [rbp + 0x1180]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov r8, rbx
mov qword [0x1400cfa28], rbx
lea rdx, str.SystemRoot
mov rcx, rsi
call fcn.14000ded0
cmp qword [0x1400d3e98], r13
jne 0x14003957b
mov ecx, 0x41f8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x14003a0bf
lea rcx, [rax + 0xe0]
xor edx, edx
mov r8d, 0x4118
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0xe0
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
mov ecx, 0x18
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x14003a0bf
mov edx, 0x64
mov rcx, rax
call fcn.140028cc0
lea rax, [fcn.1400221c0]
mov qword [rbx + 0x10], rbx
mov qword [rbx + 0x20], rax
mov ecx, 0x18
lea rax, [rbx + 0x10]
mov qword [rbx + 8], rdi
mov qword [0x1400d3ec8], rax
mov dword [rbx + 0x18], 0x24800
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x14003a0bf
mov edx, 0x64
mov rcx, rax
call fcn.140028cc0
mov ecx, 0x18
mov qword [rbx + 0xb0], rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x14003a0bf
mov edx, 0x64
mov rcx, rax
call fcn.140028cc0
mov qword [rbx + 0xb8], rdi
lea rcx, [rbx + 0x211c]
xor edx, edx
mov byte [rbx], 1
mov r8d, 0x20dc
call sub.VCRUNTIME140.dll_memset
mov dword [rbx + 0x2118], r13d
mov qword [rbx + 0x2120], 0xffffffffffffffff
mov qword [rbx + 0x2128], 0xffffffffffffffff
mov qword [0x1400d3e98], rbx
lea rcx, [rbp - 0x60]
call fcn.14003a250
mov rax, qword [rbp + 0xa08]
lea rcx, [rbp - 0x60]
mov r8, r12
mov qword [rsp + 0x30], rax
mov edx, r15d
call fcn.140046900
mov eax, dword [rbp + 0x320]
mov dword [0x1400d3eb0], 0x1000021
mov dword [0x1400d3eb8], 0x46000089
test eax, eax
js 0x1400395c8
cmp eax, 0xf
jle 0x1400395cb
cmovg eax, r14d
jmp 0x1400395cb
mov eax, r13d
mov ecx, dword [0x1400cb9c8]
mov r14, qword [rbp + 0x410]
mov dword [0x1400d3ed4], eax
mov eax, dword [rbp + 0x324]
test eax, eax
cmovns ecx, eax
mov dword [0x1400cb9c8], ecx
test r14, r14
je 0x1400396d0
cmp qword [rbp + 0xa20], r13
jne 0x1400396d0
mov ecx, 0x90
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x14003a0bf
xorps xmm0, xmm0
mov ecx, 0x888
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x50], xmm0
movups xmmword [rax + 0x60], xmm0
movups xmmword [rax + 0x70], xmm0
movups xmmword [rax + 0x80], xmm0
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x14003a0bf
xor edx, edx
mov r8d, 0x888
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov ebx, r13d
cmp dword [r14], r13d
jle 0x1400396ad
nop dword [rax]
nop dword [rax + rax]
movsxd rcx, ebx
lea rdx, [r14 + 8]
mov rax, rcx
shl rax, 4
add rdx, rax
imul rax, rcx, 0x88
lea rcx, [rsi + 8]
add rcx, rax
call fcn.140056500
inc ebx
mov dword [rsi], ebx
cmp ebx, dword [r14]
jl 0x140039680
mov qword [rdi + 0x80], rsi
mov byte [rdi + 0x88], 1
mov qword [rbp + 0xa20], rdi
mov byte [rbp + 0xa28], 1
mov qword [0x1400cba00], rsi
mov r8d, 1
lea rcx, [rbp - 0x60]
movzx edx, r8b
call fcn.14001e6a0
mov eax, dword [rbp + 0x320]
mov dword [0x1400d3eb0], 0x1000021
mov dword [0x1400d3eb8], 0x46000089
test eax, eax
js 0x140039710
cmp eax, 0xf
jle 0x140039713
mov ecx, reloc.WS2_32.dll_ntohs
cmovg eax, ecx
jmp 0x140039713
mov eax, r13d
mov ecx, dword [0x1400cb9c8]
mov ebx, 1
mov dword [0x1400d3ed4], eax
mov eax, dword [rbp + 0x324]
test eax, eax
cmovns ecx, eax
mov dword [0x1400cb9c8], ecx
cmp qword [rbp + rbx*8 + 0x5f0], r13
je 0x14003976f
mov ecx, 0x40
call fcn.14000ec70
test al, al
je 0x14003975e
lea rdx, str.Note:_OpenSSL_provider_functionality_is_not_available
mov ecx, 0x40
call fcn.14000e820
mov qword [rbp + rbx*8 + 0x670], r13
inc rbx
cmp rbx, 0x10
jl 0x140039735
cmp qword [rbp + 0x100], r13
jne 0x1400397fd
mov rbx, qword [rbp + 0x110]
test rbx, rbx
je 0x1400397fd
mov rax, 0xffffffffffffffff
nop
inc rax
cmp byte [rbx + rax], r13b
jne 0x140039790
inc eax
mov ecx, 1
movsxd rsi, eax
mov rdx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rdi, rax
test rax, rax
je 0x14003a0bf
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, 0x2f
mov rcx, rdi
call qword [sym.imp.VCRUNTIME140.dll_strrchr]
test rax, rax
jne 0x1400397f3
lea edx, [rax + 0x5c]
mov rcx, rdi
call qword [sym.imp.VCRUNTIME140.dll_strrchr]
test rax, rax
jne 0x1400397f3
mov qword [rbp + 0x100], rdi
jmp 0x1400397fd
inc rax
mov qword [rbp + 0x100], rax
lea rcx, [rbp - 0x60]
call fcn.140019780
test al, al
jne 0x140039c65
lea rcx, [rbp - 0x60]
call fcn.140019a30
test al, al
jne 0x140039c65
cmp byte [rbp - 0x30], r13b
jne 0x140039fb6
lea rcx, [rbp - 0x60]
call fcn.1400427e0
mov rax, qword [rbp + 0xc8]
test rax, rax
je 0x140039871
mov edi, r13d
cmp dword [rax], r13d
jle 0x14003987e
mov rbx, r13
nop dword [rax]
mov rdx, qword [rax + rbx + 8]
lea rcx, [rbp - 0x60]
call fcn.1400402d0
mov rax, qword [rbp + 0xc8]
lea rbx, [rbx + 8]
inc edi
cmp edi, dword [rax]
jl 0x140039850
jmp 0x14003987e
lea rdx, [rbp + 8]
lea rcx, [rbp - 0x60]
call fcn.1400402d0
lea rcx, [rbp - 0x60]
call fcn.140043730
lea rcx, [rbp - 0x60]
call fcn.14003d890
cmp dword [0x1400d3ed4], 1
jb 0x1400398bf
mov ecx, 1
call fcn.14000ec70
test al, al
je 0x1400398bf
lea r8, str.OpenVPN_2.5.7_Windows_MSVC__SSL__OpenSSL____LZO___LZ4___PKCS11___AEAD__built_on_May_27_2022
mov ecx, 1
lea rdx, [0x14008d6e8]
call fcn.14000e820
mov ecx, 1
call fcn.140045690
cmp dword [0x1400d3ed4], 1
jb 0x140039910
mov ecx, 1
call fcn.14000ec70
test al, al
je 0x140039910
xor ecx, ecx
call qword [sym.imp.libcrypto_1_1_x64.dll_OpenSSL_version]
mov rbx, rax
call fcn.14008ac80
lea r9, str.__LZO
mov qword [rsp + 0x20], rax
mov r8, rbx
lea rdx, str.library_versions:__s_s_s
mov ecx, 1
call fcn.14000e820
mov r8, qword [rbp + 0x9a8]
lea rcx, [0x1400d3d20]
test r8, r8
je 0x14003993a
movzx r9d, byte [rbp + 0x9b0]
mov edx, 1
call fcn.140086480
jmp 0x140039a24
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 2]
call fcn.140086480
cmp dword [0x1400d3d20], 2
jne 0x140039a24
cmp byte [0x1400d3d40], r13b
jne 0x140039986
mov edx, 0x100
lea rcx, [0x1400d3d41]
call qword [sym.imp.KERNEL32.dll_GetConsoleTitleA]
test eax, eax
jne 0x14003997f
mov word [0x1400d3d40], r13w
jmp 0x140039986
mov byte [0x1400d3d40], 1
mov rbx, qword [rbp - 0x48]
mov ecx, 0x108
mov qword [rsp + 0x70], 0x100
mov dword [rsp + 0x78], r13d
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x14003a0bf
movups xmm0, xmmword [rsp + 0x70]
add rax, 8
mov qword [rdi], r13
mov qword [rbp - 0x80], rax
lea r8, [0x14008d9d9]
movsd xmm1, qword [rbp - 0x80]
lea rdx, str.__s__OpenVPN_2.5.7_F4:EXIT_F1:USR1_F2:USR2_F3:HUP
test rbx, rbx
movsd qword [rbp - 0x68], xmm1
lea rcx, [rbp - 0x78]
mov byte [rax], r13b
cmovne r8, rbx
movups xmmword [rbp - 0x78], xmm0
call fcn.140003080
mov rax, qword [rbp - 0x68]
test rax, rax
je 0x140039a06
cmp dword [rbp - 0x70], r13d
jl 0x140039a06
movsxd rcx, dword [rbp - 0x74]
add rcx, rax
jmp 0x140039a09
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
nop
mov rbx, qword [rdi]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdi, rbx
test rbx, rbx
jne 0x140039a10
lea rcx, [rbp - 0x60]
call fcn.140020a90
test al, al
jne 0x140039c65
test byte [rbp + 0x400], 2
jne 0x140039a98
cmp qword [rbp - 0x28], r13
je 0x140039a80
mov rax, 0xffffffffffffffff
lea rcx, [0x1400d0a33]
inc rax
cmp byte [rcx + rax], r13b
jne 0x140039a52
test rax, rax
jne 0x140039a80
mov rdx, qword [rbp - 0x28]
lea r9d, [rax + 5]
lea r8, str.Private_Key
mov qword [rsp + 0x20], r13
lea rcx, [0x1400cfa30]
call fcn.140029830
mov rcx, qword [rbp + 0x578]
test rcx, rcx
je 0x140039a98
lea rdx, [rbp + 0x590]
call fcn.140069150
cmp byte [rbp + 0x9f0], r13b
je 0x140039b25
cmp byte [rbp + 0x30c], r13b
jne 0x140039f33
mov rbx, qword [rbp + 0x2f0]
mov rsi, qword [rbp + 0x2e0]
mov byte [rbp + 0xa29], r13b
test rbx, rbx
je 0x140039b25
lea rdx, [0x14009ce24]
mov rcx, rbx
call fcn.140055c70
mov rdi, rax
test rax, rax
je 0x140039f08
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x14009f4f4]
mov rcx, rdi
mov r8d, eax
call fcn.14000e720
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test eax, eax
jne 0x140039edd
test rsi, rsi
jne 0x140039b25
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov qword [0x1400cb9e8], rax
mov rbx, qword [0x1400d3e98]
test rbx, rbx
je 0x140039c85
mov rdx, qword [rbp + 0x3c0]
test rdx, rdx
je 0x140039c80
cmp dword [rbp - 0x40], 1
mov eax, dword [rbp + 0x400]
jne 0x140039b54
or eax, 1
mov r9, qword [rbp + 0x3d0]
lea rcx, [rbx + 0xe0]
mov r8, qword [rbp + 0x3c8]
mov dword [rsp + 0x58], eax
mov eax, dword [rbp + 0x310]
mov dword [rsp + 0x50], eax
mov rax, qword [rbp + 0x3e8]
mov qword [rsp + 0x48], rax
mov eax, dword [rbp + 0x3e0]
mov dword [rsp + 0x40], eax
mov eax, dword [rbp + 0x3dc]
mov dword [rsp + 0x38], eax
mov eax, dword [rbp + 0x3d8]
mov dword [rsp + 0x30], eax
mov rax, qword [rbp + 0x3f8]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x3f0]
mov qword [rsp + 0x20], rax
call fcn.140025d50
mov edx, dword [rbx + 0x20f4]
mov rcx, qword [rbx + 8]
call fcn.140029000
mov edx, dword [rbx + 0x20f8]
mov rcx, qword [rbx + 0xb0]
call fcn.140029000
mov edx, dword [rbx + 0x20fc]
mov rcx, qword [rbx + 0xb8]
call fcn.140029000
cmp dword [rbx + 0x2118], r13d
jne 0x140039c29
cmp byte [rbx + 0xf0], r13b
jne 0x140039c29
mov rcx, rbx
call fcn.140025f80
xor r9d, r9d
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
xor r8d, r8d
mov qword [rsp + 0x20], r13
lea edx, [r9 + 1]
call fcn.140026490
cmp qword [0x1400d3e98], r13
je 0x140039c39
xor edx, edx
call fcn.140028330
mov rax, qword [rbp + 0xa18]
mov ecx, dword [rax]
test ecx, ecx
je 0x140039c85
mov ecx, 0x40
call fcn.14000ec70
test al, al
je 0x140039c65
lea rdx, str.Signal_received_from_management_interface__exiting
mov ecx, 0x40
call fcn.14000e820
lea rcx, [rbp - 0x60]
call fcn.140019700
call fcn.14001ea40
call fcn.140019730
xor ecx, ecx
call fcn.14000f470
int3
call fcn.14001ea40
test byte [rbp + 0x400], 2
je 0x140039ce8
cmp qword [rbp - 0x28], r13
je 0x140039cd0
mov rax, 0xffffffffffffffff
lea rcx, [0x1400d0a33]
inc rax
cmp byte [rcx + rax], r13b
jne 0x140039ca2
test rax, rax
jne 0x140039cd0
mov rdx, qword [rbp - 0x28]
lea r9d, [rax + 5]
lea r8, str.Private_Key
mov qword [rsp + 0x20], r13
lea rcx, [0x1400cfa30]
call fcn.140029830
mov rcx, qword [rbp + 0x578]
test rcx, rcx
je 0x140039ce8
lea rdx, [rbp + 0x590]
call fcn.140069150
mov rcx, qword [rbp + 0xa08]
lea rdx, [rbp - 0x60]
call fcn.14003aaa0
lea rcx, [rbp - 0x60]
call fcn.1400194b0
mov ecx, dword [rbp - 0x40]
test ecx, ecx
je 0x140039d34
cmp ecx, 1
jne 0x140039f9d
mov eax, dword [rbp + 8]
cmp eax, 4
ja 0x140039f84
lea rcx, [rbp - 0x60]
cmp eax, 1
jne 0x140039d2d
call fcn.14002e5a0
jmp 0x140039d3d
call fcn.14002d6b0
jmp 0x140039d3d
lea rcx, [rbp - 0x60]
call fcn.140038fb0
mov rax, qword [rbp + 0xa18]
mov byte [rbp + 0x9f0], r13b
mov ecx, dword [rax]
test ecx, ecx
je 0x140039d63
mov rcx, qword [rbp + 0xa18]
xor edx, edx
lea r8d, [rdx + 1]
call fcn.140062530
cmp qword [0x1400d3e98], r13
je 0x140039e04
mov rax, qword [rbp + 0xa18]
mov ecx, dword [rax]
sub ecx, 1
je 0x140039d99
sub ecx, 1
je 0x140039d91
sub ecx, 8
je 0x140039d99
cmp ecx, 5
jne 0x140039e04
mov r10d, 6
jmp 0x140039d9f
mov r10d, 5
lfence
mov rax, qword [rbp + 0xa18]
mov r8, qword [rax + 8]
test r8, r8
jne 0x140039dea
mov edx, dword [rax]
lea r9, reloc.WS2_32.dll_bind
mov rax, r9
lea r8, [0x140097328]
mov rcx, r13
cmp edx, dword [rax]
je 0x140039de1
inc rcx
add rax, 0x18
cmp rax, r8
jl 0x140039dc8
lea r8, str.UNKNOWN
jmp 0x140039dea
lea rax, [rcx + rcx*2]
mov r8, qword [r9 + rax*8 + 8]
mov qword [rsp + 0x30], r13
xor r9d, r9d
mov qword [rsp + 0x28], r13
mov edx, r10d
mov qword [rsp + 0x20], r13
call fcn.140026490
mov rax, qword [rbp + 0xa18]
mov ecx, dword [rax]
cmp ecx, 0xa
je 0x140039d01
mov rsi, qword [rbp + 0xa08]
test rsi, rsi
je 0x140039e57
cmp qword [rsi], r13
jne 0x140039e57
mov rdi, qword [rsi + 8]
test rdi, rdi
je 0x140039e4e
mov rcx, qword [rdi]
mov rbx, qword [rdi + 8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdi, rbx
test rbx, rbx
jne 0x140039e30
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp byte [rbp - 0x50], r13b
je 0x140039e66
lea rcx, [rbp - 0x60]
call fcn.140001010
mov rcx, qword [rbp + 0x9f8]
test rcx, rcx
je 0x140039e91
mov qword [rbp + 0x9f8], r13
nop dword [rax]
mov rbx, qword [rcx]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rbx
test rbx, rbx
jne 0x140039e80
mov rdi, qword [rbp + 0xa00]
test rdi, rdi
je 0x140039ec6
mov qword [rbp + 0xa00], r13
mov rcx, qword [rdi + 0x10]
mov rax, qword [rdi + 8]
mov rbx, qword [rdi]
call qword [0x14008d1f0]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdi, rbx
test rbx, rbx
jne 0x140039ea4
mov rax, qword [rbp + 0xa18]
mov ecx, dword [rax]
cmp ecx, 1
jne 0x140039c65
jmp 0x140039343
mov ecx, 0x110
call fcn.14000ec70
test al, al
je 0x14003a05f
mov r8, rbx
lea rdx, str.Close_error_on_pid_file__s
mov ecx, 0x110
call fcn.14000e820
jmp 0x14003a05f
mov ecx, 0x110
call fcn.14000ec70
test al, al
je 0x14003a05f
mov r8, rbx
lea rdx, str.Open_error_on_pid_file__s
mov ecx, 0x110
call fcn.14000e820
jmp 0x14003a05f
cmp dword [rbp + 0x314], r13d
je 0x140039f55
lea r8, str._options__inetd
mov edx, 0x4d6
lea rcx, str.C:Users_vagrant_buildbotwindows_server_2019_static_msbuildopenvpn_srcopenvpninit.c
call fcn.14000ed60
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, 0x110
mov dword [rax], reloc.WS2_32.dll_ntohl
call fcn.14000ec70
test al, al
je 0x14003a05f
lea rdx, str.daemon___failed_or_unsupported
mov ecx, 0x110
jmp 0x14003a05a
lea r8, [0x14008d704]
mov edx, 0xc88
lea rcx, str.C:Users_vagrant_buildbotwindows_server_2019_static_msbuildopenvpn_srcopenvpn_socket.c
call fcn.14000ed60
int3
lea r8, [0x14008d704]
mov edx, 0x13d
lea rcx, str.C:Users_vagrant_buildbotwindows_server_2019_static_msbuildopenvpn_srcopenvpnopenvpn.c
call fcn.14000ed60
int3
cmp qword [rbp + 0x100], r13
jne 0x140039fe5
mov ecx, 0xb000
call fcn.14000ec70
test al, al
je 0x140039fe5
lea r8, str.TUN_TAP_device____dev_
mov ecx, 0xb000
lea rdx, str.You_must_define__s
call fcn.14000e820
cmp qword [rbp + 0x30], r13
jne 0x14003a040
cmp qword [rbp + 0x128], r13
jne 0x14003a040
cmp qword [rbp + 0x130], r13
jne 0x14003a040
cmp qword [rbp + 0x5a0], r13
jne 0x14003a040
cmp byte [rbp + 0x709], r13b
jne 0x14003a040
cmp byte [rbp + 0x70a], r13b
jne 0x14003a040
mov ecx, 0x8010
call fcn.14000ec70
test al, al
je 0x14003a05f
mov r8, qword [rbp + 0x100]
lea rdx, str.options___mktun_and___rmtun_are_not_available_on_your_operating_system.__Please_check_man_tun__or_tap___whether_your_system_supports_using_ifconfig__s_create___destroy_to_create_remove_persistent_tunnel_interfaces.
mov ecx, 0x8010
call fcn.14000e820
jmp 0x14003a05f
mov ecx, 0x8010
call fcn.14000ec70
test al, al
je 0x14003a05f
lea rdx, str.options___mktun_or___rmtun_should_only_be_used_together_with___dev
mov ecx, 0x8010
call fcn.14000e820
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
int3
call fcn.14000ede0
int3
mov ecx, reloc.WS2_32.dll_recv
call fcn.14000ec70
test al, al
je 0x14003a0b3
lea rdx, str.String_overflow_attempting_to_read_environmental_variable__s
mov ecx, reloc.WS2_32.dll_recv
jmp 0x14003a0a7
mov ecx, 0x110
call fcn.14000ec70
test al, al
je 0x14003a0b3
lea rdx, str.Cannot_find_environmental_variable__s
mov ecx, 0x110
lea r8, str.SystemRoot
call fcn.14000e820
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
int3
call fcn.14000ede0
int3