Function at 0x140098660
Capabilities:
Get file version info

Disassembly:
push rbx
push rbp
push r15
sub rsp, 0x160
mov rax, qword [0x1403749c0]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor r15d, r15d
mov ebx, edx
mov dword [rsp + 0x30], r15d
mov rbp, rcx
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x34], r15d
cmp edx, 2
jb 0x1400986a1
xor eax, eax
jmp 0x1400989a1
mov rcx, qword [rcx + 0x1520]
cmp qword [0x140377e50], rcx
jne 0x1400986c0
lea rcx, [0x140377e58]
mov eax, dword [rcx + rbx*4]
jmp 0x1400989a1
mov qword [rsp + 0x158], r12
mov r12d, 0x404
mov qword [rsp + 0x150], r14
movzx r14d, cx
mov qword [0x140377e50], rcx
cmp dword [rbp + 0x1560], r15d
je 0x140098705
cmp cx, r12w
jne 0x140098705
mov qword [0x140377e58], 0x7000404
mov eax, 0x7000404
jmp 0x140098991
mov eax, 0xe0080404
cmp rcx, rax
je 0x140098737
mov eax, 0xe0090404
cmp rcx, rax
je 0x140098737
mov eax, 0xe00a0404
cmp rcx, rax
je 0x140098737
mov eax, 0xe00b0404
cmp rcx, rax
je 0x140098737
mov eax, 0xe00e0804
cmp rcx, rax
jne 0x14009874b
mov r8d, 0xff
lea rdx, [rsp + 0x40]
call sub.IMM32.dll_ImmGetIMEFileNameA
test eax, eax
jne 0x140098761
lea rcx, [0x140377e58]
mov qword [0x140377e58], r15
mov eax, dword [rcx + rbx*4]
jmp 0x140098991
mov qword [rsp + 0x188], rsi
mov qword [rsp + 0x190], rdi
cmp qword [rbp + 0x1530], r15
jne 0x140098970
mov r9d, 0xffffffff
mov dword [rsp + 0x28], 0xffffffff
lea rax, str.TINTLGNT.IME
mov ecx, 0x409
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea edx, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CompareStringA]
cmp eax, 2
je 0x140098889
mov r9d, 0xffffffff
mov dword [rsp + 0x28], 0xffffffff
lea rax, str.CINTLGNT.IME
mov ecx, 0x409
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea edx, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CompareStringA]
cmp eax, 2
je 0x140098889
mov r9d, 0xffffffff
mov dword [rsp + 0x28], 0xffffffff
lea rax, str.MSTCIPHA.IME
mov ecx, 0x409
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea edx, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CompareStringA]
cmp eax, 2
je 0x140098889
mov r9d, 0xffffffff
mov dword [rsp + 0x28], 0xffffffff
lea rax, str.PINTLGNT.IME
mov ecx, 0x409
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea edx, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CompareStringA]
cmp eax, 2
je 0x140098889
mov r9d, 0xffffffff
mov dword [rsp + 0x28], 0xffffffff
lea rax, str.MSSCIPYA.IME
mov ecx, 0x409
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea edx, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CompareStringA]
cmp eax, 2
jne 0x140098970
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test eax, eax
je 0x140098970
mov ecx, esi
call fcn.140084170
mov rdi, rax
test rax, rax
je 0x140098968
mov edx, dword [rsp + 0x30]
lea rcx, [rsp + 0x40]
mov r9, rax
mov r8d, esi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x140098968
lea r9, [rsp + 0x34]
mov rcx, rdi
lea r8, [rsp + 0x38]
lea rdx, [0x14023cb34]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x140098968
mov rdx, qword [rsp + 0x38]
mov eax, dword [rdx + 8]
movzx ecx, al
and eax, 0xffff0000
shl ecx, 8
or ecx, eax
shl ecx, 8
cmp qword [rbp + 0x1530], r15
jne 0x1400989de
cmp r14d, r12d
jne 0x1400989bd
cmp ecx, 0x4020000
je 0x1400989de
cmp ecx, 0x4030000
je 0x1400989de
cmp ecx, 0x4040000
je 0x1400989de
cmp ecx, 0x5000000
je 0x1400989de
cmp ecx, 0x5010000
je 0x1400989de
cmp ecx, 0x5020000
je 0x1400989de
cmp ecx, 0x6000000
je 0x1400989de
mov rcx, rdi
call fcn.140084140
lea rcx, [0x140377e58]
mov qword [0x140377e58], r15
mov eax, dword [rcx + rbx*4]
mov rdi, qword [rsp + 0x190]
mov rsi, qword [rsp + 0x188]
mov r12, qword [rsp + 0x158]
mov r14, qword [rsp + 0x150]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140158fa0
add rsp, 0x160
pop r15
pop rbp
pop rbx
ret
cmp r14d, 0x804
jne 0x140098968
cmp ecx, 0x4010000
je 0x1400989de
cmp ecx, 0x4020000
je 0x1400989de
cmp ecx, 0x5030000
jne 0x140098968
mov eax, dword [rdx + 0xc]
or ecx, r14d
mov dword [0x140377e58], ecx
mov rcx, rdi
mov dword [0x140377e5c], eax
call fcn.140084140
mov eax, dword [0x140377e58]
jmp 0x140098981