Function at 0x140050f30
Capabilities:
Accept command line arguments
Get file version info

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x1400c24b8]
xor rax, rsp
mov qword [rbp + 0x380], rax
mov byte [rsp + 0x20], dl
mov rbx, rcx
mov qword [rsp + 0x38], rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rbx], eax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140050f90
lea r15, [rbx + 0x210]
mov rdx, rax
mov rcx, r15
call fcn.14000a2d0
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x60]
call fcn.140067170
mov r14d, 0x104
mov r8d, r14d
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea r13, [rbx + 4]
mov ecx, r14d
lea rax, [rsp + 0x60]
cmp word [rax], 0
je 0x140050ff1
add rax, 2
sub rcx, 1
jne 0x140050fe1
mov rdx, r14
xor r12d, r12d
sub rdx, rcx
test rcx, rcx
cmove rdx, r12
mov eax, r12d
cmovne rax, rdx
lea rcx, [rsp + 0x60]
lea rcx, [rcx + rax*2]
lea rax, [rsp + 0x60]
cmp rcx, rax
jbe 0x14005103a
nop dword [rax + rax]
cmp word [rcx], 0x5c
je 0x140051036
sub rcx, 2
lea rax, [rsp + 0x60]
cmp rcx, rax
ja 0x140051020
jmp 0x14005103a
add rcx, 2
mov r8, r14
mov rdx, r13
sub rcx, r13
lea rax, [r8 + 0x7ffffefa]
test rax, rax
je 0x140051065
movzx eax, word [rcx + rdx]
test ax, ax
je 0x140051065
mov word [rdx], ax
add rdx, 2
sub r8, 1
jne 0x140051043
lea rax, [rdx - 2]
test r8, r8
cmovne rax, rdx
mov word [rax], r12w
test r13, r13
je 0x14005109f
mov rcx, r14
mov rax, r13
nop
cmp word [rax], 0
je 0x140051090
add rax, 2
sub rcx, 1
jne 0x140051080
mov rax, r14
sub rax, rcx
test rcx, rcx
cmove rax, r12
jne 0x1400510a2
mov rax, r12
lea rax, [rax*2]
add rax, r13
cmp rax, r13
jbe 0x1400510c7
cmp word [rax], 0x2e
je 0x1400510c3
sub rax, 2
cmp rax, r13
ja 0x1400510b2
jmp 0x1400510c7
mov word [rax], r12w
mov rcx, r13
call qword [sym.imp.USER32.dll_CharLowerW]
add rbx, 0x20c
mov qword [rsp + 0x28], rbx
mov rdx, r13
mov rcx, rbx
call fcn.140051d20
mov r10, r15
cmp qword [r15 + 0x18], 8
jb 0x1400510f4
mov r10, qword [r15]
mov rax, qword [r15 + 0x10]
mov esi, 7
cmp rax, 2
jb 0x140051168
lea r11, [rax - 1]
lea r11, [r10 + r11*2]
mov rcx, r10
lea rdi, [0x140096b7c]
mov rax, r11
sub rax, rcx
sar rax, 1
je 0x140051168
cmp word [rcx], 0x3a
je 0x140051130
add rcx, 2
sub rax, 1
jmp 0x14005111e
mov r8d, 2
mov rdx, rdi
mov r9, rcx
sub r9, rdi
nop
movzx eax, word [rdx]
cmp word [r9 + rdx], ax
jne 0x1400512c5
add rdx, 2
sub r8, 1
jne 0x140051140
sub rcx, r10
sar rcx, 1
cmp rcx, 3
jb 0x140051295
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], rsi
mov word [rsp + 0x40], r12w
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x140051184
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.14000a2d0
nop
mov dword [rsp + 0x24], r12d
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x24]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rsi, rax
test rax, rax
je 0x14005124e
lea rax, [rsp + 0x40]
cmp r15, rax
je 0x1400511ec
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x50]
mov rcx, r15
call fcn.14000a2d0
mov edi, 1
cmp dword [rsp + 0x24], edi
jle 0x140051244
lea rbx, [rsi + 8]
nop dword [rax + rax]
mov r8d, 1
lea rdx, [0x1400aed00]
mov rcx, r15
call fcn.14000baf0
mov rdx, qword [rbx]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rdx + r8*2], 0
jne 0x140051220
mov rcx, r15
call fcn.14000baf0
inc edi
add rbx, 8
cmp edi, dword [rsp + 0x24]
jl 0x140051200
mov rbx, qword [rsp + 0x28]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x140051290
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005128b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400514bc
call fcn.140064808
mov esi, 7
cmp dword [rbx], 0x6528b538
jne 0x140051408
mov rbx, qword [r15 + 0x10]
cmp qword [r15 + 0x18], 8
jb 0x1400512af
mov r15, qword [r15]
cmp rbx, 8
jae 0x1400512ce
movups xmm0, xmmword [r15]
movups xmmword [rsp + 0x40], xmm0
mov rdi, qword [rsp + 0x40]
jmp 0x14005130f
add rcx, 2
jmp 0x140051115
mov rsi, rbx
or rsi, 7
movabs rax, 0x7ffffffffffffffe
cmp rsi, rax
cmova rsi, rax
lea rdx, [rsi + 1]
lea rcx, [rsp + 0x40]
call fcn.14000a470
mov rdi, rax
mov qword [rsp + 0x40], rax
lea r8, [rbx*2 + 2]
mov rdx, r15
mov rcx, rax
call fcn.140066d60
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x170]
call fcn.140067170
lea rdx, [rsp + 0x40]
cmp rsi, 8
cmovae rdx, rdi
lea rcx, [rbp + 0x170]
lea rax, [rbp + 0x170]
sub rdx, rax
nop dword [rax + rax]
lea rax, [r14 + 0x7ffffefa]
test rax, rax
je 0x140051372
movzx eax, word [rdx + rcx]
test ax, ax
je 0x140051372
mov word [rcx], ax
add rcx, 2
sub r14, 1
jne 0x140051350
lea rax, [rcx - 2]
test r14, r14
cmovne rax, rcx
mov word [rax], r12w
lea rdx, str..dll
lea rcx, [rbp + 0x170]
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
test rax, rax
je 0x1400513fe
mov word [rax], r12w
mov edx, 0x20
lea rcx, [rbp + 0x170]
call fcn.140067300
test rax, rax
lea rbx, [rax + 2]
jne 0x1400513bf
lea rbx, [rbp + 0x170]
mov edx, 0x5c
mov rcx, rbx
call fcn.140067300
test rax, rax
je 0x1400513d5
lea rbx, [rax + 2]
mov r8, rbx
mov edx, 0x208
mov rcx, r13
call fcn.140004cd0
lea rcx, [rsp + 0x40]
call fcn.140008c30
mov rdx, r13
mov rcx, qword [rsp + 0x28]
call fcn.140051d20
jmp 0x140051408
lea rcx, [rsp + 0x40]
call fcn.140008c30
cmp byte [rsp + 0x20], 0
je 0x14005148c
mov dword [rsp + 0x24], r12d
lea rdx, [rsp + 0x24]
lea rcx, [rsp + 0x60]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test eax, eax
je 0x14005148c
mov ecx, edi
call fcn.140064e98
mov rbx, rax
test rax, rax
je 0x14005148c
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov r9, rax
mov r8d, edi
xor edx, edx
lea rcx, [rsp + 0x60]
call sub.VERSION.dll_GetFileVersionInfoW
lea r9, [rsp + 0x28]
lea r8, [rsp + 0x30]
lea rdx, [0x1400ae83c]
mov rcx, rbx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140051484
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax + 8]
mov rax, qword [rsp + 0x38]
mov dword [rax + 0x230], ecx
mov rcx, rbx
call fcn.140064808
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.140064920
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.14006b51c
int3