Function at 0x140056d10
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push rbp
push r12
push r13
push r14
push r15
mov eax, 0x60
call fcn.14005d7e0
sub rsp, rax
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x50], rbx
mov qword [rbp + 0x58], rsi
mov qword [rbp + 0x60], rdi
mov rax, qword [0x1400ac2c8]
xor rax, rbp
mov qword [rbp + 0x10], rax
mov r13, rdx
mov qword [rbp], rdx
mov qword [rbp + 8], rcx
xor edx, edx
lea rcx, str.OPENSSL_WIN32_UTF8
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x140057094
xor r15d, r15d
xor ecx, ecx
mov dword [0x1400ad53c], r15d
mov qword [0x1400ad540], r15
call fcn.140056c80
test eax, eax
je 0x140057094
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
test rax, rax
je 0x140057094
mov rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], r15w
jne 0x140056da4
inc eax
movsxd rcx, eax
add rcx, rcx
lea rax, [rcx + 0xf]
cmp rax, rcx
ja 0x140056dc9
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14005d7e0
sub rsp, rax
lea rbx, [rsp + 0x40]
mov rcx, rbx
sub rcx, rdx
movzx eax, word [rdx]
mov word [rcx + rdx], ax
lea rdx, [rdx + 2]
test ax, ax
jne 0x140056de0
movzx eax, word [rbx]
test ax, ax
je 0x14005705a
mov r9d, r15d
cmp ax, 0x20
je 0x140056ffe
cmp ax, 9
je 0x140056ffe
mov rsi, rbx
mov r12, rbx
test ax, ax
je 0x140056f2d
mov r13d, 0x5c
test r9d, r9d
jne 0x140056e44
movzx eax, word [rbx]
cmp ax, 0x20
je 0x140056f29
cmp ax, 9
je 0x140056f29
movzx eax, word [rbx]
cmp ax, 0x22
je 0x140056ef6
cmp ax, r13w
je 0x140056e63
mov word [rsi], ax
add rsi, 2
jmp 0x140056f1b
mov rcx, rbx
nop word [rax + rax]
movzx eax, word [rbx + 2]
add rbx, 2
cmp ax, r13w
je 0x140056e70
mov r8, rbx
sub r8, rcx
sar r8, 1
cmp ax, 0x22
jne 0x140056ed5
mov rax, r8
cqo
sub rax, rdx
sar rax, 1
test eax, eax
jle 0x140056eb5
mov ecx, eax
mov rdi, rsi
movzx eax, r13w
lea rdx, [rcx + rcx]
mov rcx, rdx
shr rcx, 1
rep stosw word [rdi], ax
add rsi, rdx
mov rax, r8
cqo
and eax, 1
xor rax, rdx
sub rax, rdx
cmp rax, 1
jne 0x140056f1f
movzx eax, word [rbx]
mov word [rsi], ax
add rsi, 2
jmp 0x140056f1b
test r8d, r8d
jle 0x140056f1f
mov eax, r8d
mov rdi, rsi
lea rdx, [rax + rax]
movzx eax, r13w
mov rcx, rdx
shr rcx, 1
rep stosw word [rdi], ax
add rsi, rdx
jmp 0x140056f1f
test r9d, r9d
je 0x140056f0f
cmp word [rbx + 2], 0x22
jne 0x140056f0f
mov word [rsi], ax
add rsi, 2
add rbx, 2
jmp 0x140056f1b
test r9d, r9d
mov eax, r15d
sete al
mov r9d, eax
add rbx, 2
cmp word [rbx], 0
jne 0x140056e28
mov r13, qword [rbp]
sub rsi, r12
sar rsi, 1
test esi, esi
je 0x140056f49
mov edx, esi
mov rcx, r12
call fcn.1400569d0
test eax, eax
jne 0x140056df0
mov ecx, dword [0x1400ad53c]
inc ecx
call fcn.140056c80
test eax, eax
je 0x14005700a
mov r14d, r15d
test esi, esi
jle 0x140056f97
mov qword [rsp + 0x38], r15
mov r9d, esi
mov qword [rsp + 0x30], r15
mov r8, r12
mov dword [rsp + 0x28], r15d
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov r14d, eax
test eax, eax
jle 0x140056df0
movsxd r15, r14d
lea rcx, [r15 + 1]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x140057007
test esi, esi
jle 0x140056fd9
xor eax, eax
mov r9d, esi
mov qword [rsp + 0x38], rax
mov r8, r12
mov qword [rsp + 0x30], rax
xor edx, edx
mov dword [rsp + 0x28], r14d
mov ecx, 0xfde9
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rcx, dword [0x1400ad53c]
mov rax, qword [0x1400ad540]
inc dword [0x1400ad53c]
mov byte [r15 + rdi], 0
xor r15d, r15d
mov qword [rax + rcx*8], rdi
jmp 0x140056df0
add rbx, 2
jmp 0x140056df0
xor r15d, r15d
mov rcx, qword [0x1400ad540]
test rcx, rcx
je 0x140057094
cmp dword [0x1400ad53c], 0
mov edi, r15d
jle 0x140057044
mov rbx, r15
mov rcx, qword [rbx + rcx]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [0x1400ad540]
lea rbx, [rbx + 8]
inc edi
cmp edi, dword [0x1400ad53c]
jl 0x140057025
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov dword [0x1400ad53c], r15d
mov qword [0x1400ad540], r15
jmp 0x140057094
call qword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
mov ecx, 0xfde9
mov dword [0x1400ad538], eax
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
mov eax, dword [0x1400ad53c]
mov rcx, qword [rbp + 8]
mov dword [rcx], eax
lea rcx, [0x140056960]
mov rax, qword [0x1400ad540]
mov qword [r13], rax
call fcn.14005dfa8
mov rcx, qword [rbp + 0x10]
xor rcx, rbp
call fcn.14005d840
mov rbx, qword [rbp + 0x50]
mov rsi, qword [rbp + 0x58]
mov rdi, qword [rbp + 0x60]
lea rsp, [rbp + 0x20]
pop r15
pop r14
pop r13
pop r12
pop rbp
ret