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

Disassembly:
push r15
mov eax, 0x4078
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.0067cdd0
sub rsp, rax
movzx eax, word [0x008011fc]
xor edx, edx
mov edi, 1
mov r8d, 0x1ffe
mov rsi, rcx
mov word [rsp + 0x70], ax
lea rcx, [rsp + 0x72]
call sub.msvcrt.dll_memset
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x44]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rsp + 0x28], rax
movsxd rax, dword [rsp + 0x44]
cmp rax, 1
jbe 0x43beb9
lea r14, [rsp + 0x2070]
lea rax, [r14 + 0x10]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea r13, [rsp + 0x70]
lea rbp, [rsp + 0x60]
nop dword [rax]
mov rax, qword [rsp + 0x28]
mov rbx, qword [rax + rdi*8]
cmp word [rbx], 0x2f
je 0x43bff0
lea rdx, str._script
mov rcx, rbx
call sub.SHELL32.dll_StrStrIW
test rax, rax
je 0x43bef0
lea rdx, [rbx + 0x10]
mov rcx, r13
call fcn.0068bb48
mov rcx, r13
call sub.msvcrt.dll_wcslen
test rax, rax
je 0x43c0da
movzx eax, word [0x008011fc]
xor edx, edx
mov r8d, 0x1ffe
lea rcx, [rsp + 0x2072]
mov word [rsp + 0x2070], ax
call sub.msvcrt.dll_memset
mov r8d, 0x1000
mov rdx, r14
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r12, qword [rsi + 0x20]
mov rbx, qword [rsi + 0x28]
mov r15, r12
cmp r12, rbx
je 0x43bdea
nop
mov rcx, qword [r15]
lea rdx, [r15 + 0x10]
cmp rcx, rdx
je 0x43bde1
call fcn.007da050
add r15, 0x20
cmp rbx, r15
jne 0x43bdd0
mov qword [rsi + 0x28], r12
mov rcx, r14
mov qword [rsp + 0x50], rbp
call sub.msvcrt.dll_wcslen
lea rbx, [rax + rax]
mov rdx, rbx
sar rdx, 1
cmp rdx, 7
mov qword [rsp + 0x48], rdx
ja 0x43c000
cmp rdx, 1
mov rcx, qword [rsp + 0x50]
je 0x43c040
test rdx, rdx
jne 0x43c024
xor r8d, r8d
mov qword [rsp + 0x58], rdx
mov word [rcx + rdx*2], r8w
mov rdx, qword [rsi + 0x28]
cmp rdx, qword [rsi + 0x30]
je 0x43c072
test rdx, rdx
je 0x43c06b
lea rax, [rdx + 0x10]
mov qword [rdx], rax
mov rax, qword [rsp + 0x50]
cmp rax, rbp
je 0x43c050
mov qword [rdx], rax
mov rax, qword [rsp + 0x60]
mov qword [rdx + 0x10], rax
mov rax, rdx
mov rcx, qword [rsp + 0x58]
mov qword [rdx + 8], rcx
xor edx, edx
mov rcx, rbp
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], 0
mov word [rsp + 0x60], dx
add rax, 0x20
mov qword [rsi + 0x28], rax
cmp rcx, rbp
je 0x43bea7
call fcn.007da050
movsxd rax, dword [rsp + 0x44]
add rdi, 1
cmp rax, rdi
ja 0x43bd40
mov rcx, qword [rsi + 0x20]
xor eax, eax
mov rdx, qword [rsi + 0x28]
sub rdx, rcx
sar rdx, 5
test rdx, rdx
jne 0x43c111
add rsp, 0x4078
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rsi + 0x28]
sub rax, qword [rsi + 0x20]
sar rax, 5
test rax, rax
je 0x43bea7
mov rax, qword [rsp + 0x30]
mov rcx, rbx
mov qword [rsp + 0x2070], rax
call sub.msvcrt.dll_wcslen
lea r12, [rax + rax]
mov rdx, r12
sar rdx, 1
cmp rdx, 7
mov qword [rsp + 0x50], rdx
ja 0x43c08a
cmp rdx, 1
mov rcx, qword [rsp + 0x2070]
je 0x43c0cf
test rdx, rdx
jne 0x43c0b2
xor r15d, r15d
mov qword [rsp + 0x2078], rdx
mov word [rcx + rdx*2], r15w
mov rdx, qword [rsi + 0x28]
cmp rdx, qword [rsi + 0x30]
je 0x43c3ce
test rdx, rdx
je 0x43c3b1
lea rax, [rdx + 0x10]
mov qword [rdx], rax
mov rax, qword [rsp + 0x2070]
cmp rax, qword [rsp + 0x30]
je 0x43c32e
mov qword [rdx], rax
mov rax, qword [rsp + 0x2080]
mov qword [rdx + 0x10], rax
mov rax, rdx
mov rcx, qword [rsp + 0x2078]
xor r12d, r12d
mov rbx, qword [rsp + 0x30]
mov qword [rdx + 8], rcx
mov qword [rsp + 0x2070], rbx
mov rcx, rbx
mov qword [rsp + 0x2078], 0
mov word [rsp + 0x2080], r12w
add rax, 0x20
mov qword [rsi + 0x28], rax
cmp rcx, qword [rsp + 0x30]
jne 0x43bea2
jmp 0x43bea7
mov r9d, 0x2d
mov word [rbx], r9w
jmp 0x43bd53
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x48]
xor r8d, r8d
call fcn.0079f8b0
mov rcx, rax
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x60], rax
mov rdx, r14
mov r8, rbx
call sub.msvcrt.dll_memcpy
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
jmp 0x43be2c
movzx eax, word [rsp + 0x2070]
mov word [rcx], ax
jmp 0x43be2c
mov rcx, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov qword [rdx + 0x10], rcx
mov qword [rdx + 0x18], rbx
mov rax, qword [rsi + 0x28]
jmp 0x43be74
xor eax, eax
jmp 0x43be95
mov rdx, qword [rsp + 0x38]
lea rcx, [rsi + 0x20]
call fcn.007947f0
mov rcx, qword [rsp + 0x50]
jmp 0x43be9d
mov rdx, qword [rsp + 0x38]
mov rcx, r14
xor r8d, r8d
call fcn.0079f8b0
mov rcx, rax
mov qword [rsp + 0x2070], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x2080], rax
mov rdx, rbx
mov r8, r12
call sub.msvcrt.dll_memcpy
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x2070]
jmp 0x43bf4a
movzx eax, word [rbx]
mov word [rcx], ax
jmp 0x43bf4a
mov rcx, qword [0x00827c90]
mov r8d, 0x1f
lea rdx, str.Command_line_argument_missing._n
call fcn.007cc790
mov rcx, qword [0x00827c90]
mov r8d, 0x1c
lea rdx, str.Usage:_SDI__script:file.txt_n
call fcn.007cc790
jmp 0x43beb9
lea rdx, [0x008011ce]
mov rcx, qword [rcx]
call qword [sym.imp.msvcrt.dll__wfopen]
lea rbx, [rsp + 0x70]
test rax, rax
mov rdi, rax
je 0x43c420
lea r14, [rsp + 0x2070]
lea rax, [rsp + 0x50]
lea r15, [r14 + 0x10]
mov qword [rsp + 0x28], rax
nop dword [rax + rax]
mov r8, rdi
mov edx, 0x1000
mov rcx, rbx
call sub.msvcrt.dll_fgetws
test rax, rax
je 0x43c306
mov rbp, rbx
jmp 0x43c174
add rbp, 2
movzx ecx, word [rbp]
call sub.msvcrt.dll_iswspace
test eax, eax
jne 0x43c170
mov rdx, rbp
mov rcx, rbx
call fcn.0068bb48
movzx eax, word [rsp + 0x70]
cmp ax, 0x23
je 0x43c150
cmp ax, 0x3b
je 0x43c150
mov rcx, rbx
call sub.msvcrt.dll_wcslen
test rax, rax
je 0x43c150
mov rcx, rbx
call sub.msvcrt.dll_wcslen
cmp word [rsp + rax*2 + 0x6e], 0xa
je 0x43c3b8
mov rcx, rbx
mov qword [rsp + 0x2070], r15
call sub.msvcrt.dll_wcslen
lea rbp, [rax + rax]
mov rdx, rbp
sar rdx, 1
cmp rdx, 7
mov qword [rsp + 0x50], rdx
ja 0x43c2c1
cmp rdx, 1
mov rcx, qword [rsp + 0x2070]
je 0x43c34f
test rdx, rdx
jne 0x43c2e9
xor r10d, r10d
mov qword [rsp + 0x2078], rdx
mov word [rcx + rdx*2], r10w
mov rdx, r14
mov rcx, rsi
call fcn.00438f90
mov rbp, qword [rsi + 0x10]
cmp rbp, qword [rsi + 0x18]
je 0x43c318
test rbp, rbp
je 0x43c3a1
lea rdx, [rbp + 0x10]
mov rax, qword [rsp + 0x2078]
mov qword [rbp], rdx
mov r13, qword [rsp + 0x2070]
lea r12, [rax + rax]
mov rax, r13
mov rcx, r13
add rax, r12
je 0x43c26c
test r13, r13
jne 0x43c26c
lea rcx, [0x00800710]
call fcn.007cd620
mov rax, r12
sar rax, 1
cmp rax, 7
mov qword [rsp + 0x50], rax
ja 0x43c35c
cmp rax, 1
je 0x43c3e7
test rax, rax
jne 0x43c4d0
mov r8, rbp
mov rcx, r13
xor r9d, r9d
mov qword [rbp + 8], rax
mov word [rdx + rax*2], r9w
lea rax, [r8 + 0x20]
mov qword [rsi + 0x10], rax
cmp rcx, r15
je 0x43c150
call fcn.007da050
jmp 0x43c150
mov rdx, qword [rsp + 0x28]
mov rcx, r14
xor r8d, r8d
call fcn.0079f8b0
mov rcx, rax
mov qword [rsp + 0x2070], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x2080], rax
mov rdx, rbx
mov r8, rbp
call sub.msvcrt.dll_memcpy
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x2070]
jmp 0x43c202
mov rcx, rdi
call sub.msvcrt.dll_fclose
mov eax, 1
jmp 0x43bed3
lea rcx, [rsi + 8]
mov rdx, r14
call fcn.00794560
mov rcx, qword [rsp + 0x2070]
jmp 0x43c2ae
mov rcx, qword [rsp + 0x2080]
mov rbx, qword [rsp + 0x2088]
mov qword [rdx + 0x10], rcx
mov qword [rdx + 0x18], rbx
mov rax, qword [rsi + 0x28]
jmp 0x43bf9d
movzx eax, word [rsp + 0x70]
mov word [rcx], ax
jmp 0x43c202
mov rdx, qword [rsp + 0x28]
xor r8d, r8d
mov rcx, rbp
call fcn.0079f8b0
mov rdx, qword [rsp + 0x50]
mov qword [rbp], rax
mov qword [rbp + 0x10], rdx
mov r8, r12
mov rdx, r13
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rax, qword [rsp + 0x50]
mov rdx, qword [rbp]
mov r8, qword [rsi + 0x10]
mov rcx, qword [rsp + 0x2070]
jmp 0x43c29a
mov rcx, qword [rsp + 0x2070]
xor r8d, r8d
jmp 0x43c2a6
xor eax, eax
jmp 0x43bfd1
mov rcx, rbx
call sub.msvcrt.dll_wcslen
xor r11d, r11d
mov word [rsp + rax*2 + 0x6e], r11w
jmp 0x43c1be
lea rcx, [rsi + 0x20]
mov rdx, r14
call fcn.007947f0
mov rcx, qword [rsp + 0x2070]
jmp 0x43bfd9
movzx r8d, word [r13]
mov word [rbp + 0x10], r8w
mov r8, rbp
jmp 0x43c29a
mov rax, qword [rsi + 0x20]
lea rcx, str.Failed_to_open
mov rbx, qword [rax]
call sub.msvcrt.dll_wcslen
mov rcx, qword [0x00827cd0]
lea rdx, str.Failed_to_open
mov r8, rax
call fcn.007ccb50
test rbx, rbx
je 0x43c496
mov rcx, rbx
call sub.msvcrt.dll_wcslen
mov rcx, qword [0x00827cd0]
mov rdx, rbx
mov r8, rax
call fcn.007ccb50
lea rcx, [0x008011f8]
call sub.msvcrt.dll_wcslen
mov rcx, qword [0x00827cd0]
lea rdx, [0x008011f8]
mov r8, rax
call fcn.007ccb50
xor eax, eax
jmp 0x43bed3
mov rcx, qword [0x00827cd0]
mov rax, qword [rcx]
add rcx, qword [rax - 0x18]
mov edx, dword [rcx + 0x20]
or edx, 1
call fcn.007bba00
jmp 0x43c468
mov rax, rdx
jmp 0x43c379