Function at 0x1800035c0
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x250]
sub rsp, 0x350
mov rax, qword [0x180107738]
xor rax, rsp
mov qword [rbp + 0x240], rax
mov rsi, rdx
lea rcx, [rbp + 0x140]
xor r12d, r12d
xor edx, edx
mov r8d, 0x100
mov dword [rsp + 0x34], r12d
call fcn.18007d940
xor edx, edx
mov qword [rsp + 0x28], r12
mov r8d, 0x100
lea rcx, [rsp + 0x40]
mov edi, r12d
call fcn.18007d940
xor edx, edx
lea rcx, [rbp + 0x40]
mov r8d, 0x100
call fcn.18007d940
mov rcx, rsi
call fcn.180003390
mov r8d, 0xff
lea rdx, [rbp + 0x140]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rdx, [rsp + 0x34]
lea rcx, [rbp + 0x140]
call sub.VERSION.dll_GetFileVersionInfoSizeA
movsxd r15, eax
movsx ebx, r15w
lea eax, [rbx + 1]
movsxd rcx, eax
call fcn.1800a37e0
mov r14, rax
test rax, rax
jne 0x18000368e
lea eax, [r12 - 0x6c]
jmp 0x180003a06
mov edx, dword [rsp + 0x34]
lea rcx, [rbp + 0x140]
mov r9, r14
mov r8d, ebx
call sub.VERSION.dll_GetFileVersionInfoA
test ax, ax
je 0x180003a02
lea r9, [rsp + 0x30]
mov rcx, r14
lea r8, [rsp + 0x28]
lea rdx, [0x1800dfebc]
call sub.VERSION.dll_VerQueryValueA
test ax, ax
je 0x1800036ed
mov rbx, qword [rsp + 0x28]
mov edx, dword [rbx + 0x1c]
mov ecx, dword [rbx + 0x18]
call fcn.180004f20
mov byte [rsi + 7], al
mov byte [rsi + 8], dil
mov ecx, dword [rbx + 0x20]
call fcn.180004f40
mov byte [rsi + 9], al
lea r9, [rsp + 0x30]
mov rcx, r14
lea r8, [rsp + 0x28]
lea rdx, str.VarFileInfoTranslation
call sub.VERSION.dll_VerQueryValueA
test ax, ax
jne 0x180003712
mov edi, 0x4090000
jmp 0x18000374e
mov rcx, qword [rsp + 0x28]
mov edx, r12d
nop word [rax + rax]
movzx eax, byte [rcx]
inc rcx
or edi, eax
mov qword [rsp + 0x28], rcx
movzx eax, byte [rcx]
shl eax, 8
or eax, edi
inc rcx
mov edi, eax
shl edi, 0x10
test edx, edx
mov qword [rsp + 0x28], rcx
cmovne edi, eax
inc edx
cmp edx, 2
jl 0x180003720
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x40]
mov ecx, edi
call fcn.18008b530
lea rdx, str.StringFileInfo_
lea rcx, [rbp + 0x40]
call fcn.180004d70
and edi, 0xff000000
cmp edi, 0x10000000
jae 0x18000378e
lea rdx, [0x1800dfef4]
lea rcx, [rbp + 0x40]
call fcn.180004d70
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x40]
call fcn.180004d70
lea rdx, [0x1800dfebc]
lea rcx, [rbp + 0x40]
call fcn.180004d70
lea rcx, [rbp + 0x40]
call fcn.1800051e0
lea rdx, [rbp + 0x40]
mov rbx, rax
lea rcx, [rsp + 0x40]
lea r8, [rax + 1]
call fcn.180003f90
lea rdx, str.InternalName
lea rcx, [rsp + 0x40]
call fcn.180004d70
lea r9, [rsp + 0x30]
mov rcx, r14
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x40]
call sub.VERSION.dll_VerQueryValueA
test ax, ax
jne 0x1800038fd
movsx rbx, r15w
lea rdx, str.InternalName
mov r9, rbx
mov r8b, 1
mov rcx, r14
call fcn.180004a60
cmp rax, 0xffffffffffffffff
je 0x18000383c
lea rcx, [r14 + 0xe]
add rcx, rax
mov qword [rsp + 0x28], rcx
cmp byte [rcx + 1], r12b
jne 0x180003835
add rcx, 2
mov qword [rsp + 0x28], rcx
call fcn.180004e90
mov dword [rsi], eax
mov r9, rbx
lea rdx, str.FileVersion
mov r8b, 1
mov rcx, r14
call fcn.180004a60
cmp rax, 0xffffffffffffffff
je 0x1800039fa
lea rbx, [r14 + 0xc]
add rbx, rax
mov qword [rsp + 0x28], rbx
mov rdi, rbx
cmp byte [rbx + 1], r12b
jne 0x18000387c
lea rdi, [rbx + 2]
mov rbx, rdi
mov qword [rsp + 0x28], rbx
lea rcx, [rsp + 0x40]
call fcn.180005190
lea rcx, [rbp + 0x40]
call fcn.180005190
mov r9, 0xffffffffffffffff
inc r9
cmp byte [rdi + r9], r12b
jne 0x180003896
xor r8d, r8d
lea rcx, [rsp + 0x40]
mov rdx, rbx
call fcn.180003050
lea rdx, [rbp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.1800033b0
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], r12d
lea rcx, [rsp + 0x40]
call fcn.180005340
movzx eax, byte [rsp + 0x20]
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x40]
mov byte [rsi + 4], al
mov word [rsi + 5], r12w
mov dword [rsp + 0x20], r12d
call fcn.180005340
mov ecx, dword [rsp + 0x20]
cmp ecx, 9
jmp 0x1800039ca
mov rcx, qword [rsp + 0x28]
call fcn.180004e90
lea r8, [rbx + 1]
mov dword [rsi], eax
lea rdx, [rbp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.180003f90
lea rdx, str.FileVersion
lea rcx, [rsp + 0x40]
call fcn.180004d70
lea r9, [rsp + 0x30]
mov rcx, r14
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x40]
call sub.VERSION.dll_VerQueryValueA
test ax, ax
je 0x1800039fa
lea rcx, [rsp + 0x40]
call fcn.180005190
lea rcx, [rbp + 0x40]
call fcn.180005190
mov rdx, qword [rsp + 0x28]
mov r9, 0xffffffffffffffff
nop dword [rax + rax]
inc r9
cmp byte [rdx + r9], r12b
jne 0x180003970
xor r8d, r8d
lea rcx, [rsp + 0x40]
call fcn.180003050
lea rdx, [rbp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.1800033b0
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], r12d
lea rcx, [rsp + 0x40]
call fcn.180005340
movzx eax, byte [rsp + 0x20]
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x40]
mov byte [rsi + 4], al
mov dword [rsp + 0x20], r12d
call fcn.180005340
mov ecx, dword [rsp + 0x20]
cmp ecx, 0xa
jle 0x1800039f1
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dl
mov byte [rsi + 5], dl
shl dl, 2
add al, dl
add al, al
sub cl, al
mov byte [rsi + 6], cl
jmp 0x1800039fa
cmp byte [rbp + 0x40], 1
ja 0x1800039ec
mov byte [rsi + 5], cl
mov rcx, r14
call fcn.1800a37cc
movzx eax, r12w
mov rcx, qword [rbp + 0x240]
xor rcx, rsp
call fcn.18007b2f0
lea r11, [rsp + 0x350]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret