Function at 0x10000c268
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
xor r13d, r13d
mov rbp, rcx
xor ecx, ecx
mov dword [rax + 0x10], r13d
mov dword [rax + 0x18], r13d
mov qword [rax + 0x20], r13
mov qword [rax - 0x50], r13
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, 0x104
mov edx, ebx
mov eax, r13d
lea r15d, [r13 + 1]
lea r14d, [r13 + 7]
neg eax
mov r9d, r15d
mov ecx, r14d
sbb eax, eax
and eax, ebx
add edx, eax
mov dword [rsp + 0x98], edx
mov r8d, edx
xor edx, edx
call fcn.100008498
mov rdi, rax
cmp rax, r13
je 0x10000c522
mov r8d, dword [rsp + 0x98]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, r13d
je 0x10000c538
mov edx, dword [rsp + 0x98]
lea ecx, [rdx - 1]
cmp eax, ecx
jae 0x10000c2ae
xor edx, edx
mov rcx, rdi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [rsp + 0x98], eax
cmp eax, r13d
jne 0x10000c341
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, r13d
jne 0x10000c538
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, r13d
jne 0x10000c538
mov ecx, 0x57
jmp 0x10000c532
add eax, 0xa
mov ecx, eax
mov dword [rsp + 0x98], eax
call fcn.10000ac1c
mov rbx, rax
mov qword [rsp + 0x30], rax
cmp rax, r13
je 0x10000c538
mov r8d, dword [rsp + 0x98]
mov r9, rax
xor edx, edx
mov rcx, rdi
call sub.VERSION.dll_GetFileVersionInfoW
cmp eax, r13d
jne 0x10000c38c
lea rcx, [rsp + 0x30]
call fcn.10000ab40
jmp 0x10000c538
lea r9, [rsp + 0xa0]
lea r8, [rsp + 0x38]
lea rdx, [0x100001a58]
mov rcx, rbx
call sub.VERSION.dll_VerQueryValueW
cmp eax, r13d
je 0x10000c37d
xor edx, edx
mov r9d, r15d
mov ecx, r14d
lea r8d, [rdx + 0x40]
call fcn.100008498
test dword [rsp + 0xa0], 0xfffffffc
mov qword [rsp + 0xa8], r13
mov r12, rax
mov edi, r13d
jbe 0x10000c37d
mov rsi, r13
mov rdx, qword [rsp + 0x38]
lea r8, [0x100001a90]
movzx ecx, word [rsi + rdx + 2]
movzx r9d, word [rsi + rdx]
mov edx, 0x40
mov dword [rsp + 0x20], ecx
mov rcx, r12
call fcn.1000082b0
lea r9, [rsp + 0x98]
lea r8, [rsp + 0xa8]
mov rdx, r12
mov rcx, rbx
call sub.VERSION.dll_VerQueryValueW
cmp eax, r13d
jne 0x10000c445
mov eax, dword [rsp + 0xa0]
add edi, r15d
mov rcx, r13
shr eax, 2
add rsi, 4
mov qword [rsp + 0xa8], rcx
cmp edi, eax
jb 0x10000c3dc
jmp 0x10000c44d
mov rcx, qword [rsp + 0xa8]
cmp rcx, r13
je 0x10000c37d
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 4
ja 0x10000c484
lea rcx, [rsp + 0x30]
call fcn.10000ab40
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, r13d
jne 0x10000c538
mov ecx, 0x42b
jmp 0x10000c532
mov rcx, qword [rsp + 0xa8]
lea rdx, [0x100001ae0]
xor r9d, r9d
mov r8d, r15d
call fcn.1000098e8
cmp eax, 0xffffffff
je 0x10000c4d4
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [0x100001ae0]
movsxd rbx, eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
mov rax, qword [rsp + 0xa8]
sub rbx, rcx
mov word [rax + rbx*2], r13w
cmp rbp, r13
je 0x10000c57a
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, rbp
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r9d, r15d
lea r8d, [rbx + rax + 0xb]
xor edx, edx
mov ecx, r14d
mov dword [rsp + 0x98], r8d
call fcn.100008498
mov rbx, rax
cmp rax, r13
jne 0x10000c552
lea rcx, [rsp + 0x30]
call fcn.10000ab40
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, r13d
jne 0x10000c538
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov edx, dword [rsp + 0x98]
mov r9, qword [rsp + 0xa8]
lea r8, [0x100001af0]
mov rcx, rax
mov qword [rsp + 0x20], rbp
call fcn.1000082b0
jmp 0x10000c6a0
mov rsi, qword [rsp + 0xa8]
cmp rsi, r13
jne 0x10000c597
mov ecx, r14d
call fcn.100008414
mov rbx, rax
jmp 0x10000c697
call fcn.100008320
cmp eax, r13d
jne 0x10000c5a9
mov rbx, r13
jmp 0x10000c697
mov rcx, qword [0x100014920]
mov edi, 3
mov edx, edi
call fcn.10000e3c8
mov r10d, eax
cmp eax, r14d
ja 0x10000c5e8
mov rcx, qword [0x100014920]
call fcn.10000e410
cmp rax, r13
je 0x10000c5a1
lea edx, [rdi + 5]
mov rcx, rax
sub edx, r10d
call fcn.10000e2c4
cmp eax, 0xffffffff
je 0x10000c5a1
mov rcx, qword [0x100014920]
mov r8d, r14d
mov edx, edi
call fcn.10000e778
cmp eax, r13d
je 0x10000c704
mov rcx, qword [0x100014920]
mov r8d, r14d
mov edx, edi
call fcn.10000e608
mov rbx, rax
cmp rax, r13
je 0x10000c5a1
lea rdx, [0x1000015a8]
mov r8, r14
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__memicmp]
cmp eax, r13d
jne 0x10000c5a1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [rbx + 8]
lea edi, [rax + 1]
cmp edi, ecx
ja 0x10000c659
cmp edi, 0x100
jbe 0x10000c67a
lea eax, [rdi + rdi]
cmp eax, ecx
jae 0x10000c67a
cmp ecx, r13d
jne 0x10000c7a9
lea ecx, [rdi + rdi]
call fcn.10000ac1c
mov qword [rbx + 0x10], rax
cmp rax, r13
je 0x10000c5a1
mov dword [rbx + 8], edi
cmp qword [rbx + 0x10], r13
je 0x10000c5a1
mov rcx, qword [rbx + 0x10]
mov r8d, edi
mov rdx, rsi
call fcn.100009ec8
mov rbx, qword [rbx + 0x10]
cmp rbx, r13
je 0x10000c518
mov rcx, rbx
mov qword [rsp + 0xa8], rbx
call qword [sym.imp.USER32.dll_CharUpperW]
mov edi, 0x50
mov r9d, r15d
lea ecx, [rdi - 0x45]
mov r8d, edi
xor edx, edx
call fcn.100008498
mov rbx, rax
cmp rax, r13
je 0x10000c518
mov ecx, 0x15ed
call fcn.100008cb8
mov r9, qword [rsp + 0xa8]
mov rdx, rdi
mov r8, rax
mov rcx, rbx
call fcn.1000082b0
lea rcx, [rsp + 0x30]
call fcn.10000ab40
mov rax, rbx
jmp 0x10000c53a
mov ecx, 0x18
call fcn.10000ac1c
mov rbx, rax
mov qword [rsp + 0x40], rax
cmp rax, r13
je 0x10000c5a1
mov dword [rax + 8], r13d
lea rdx, [0x1000015a8]
mov r8d, r14d
mov rcx, rax
mov qword [rax + 0x10], r13
call fcn.100009e40
mov rcx, qword [0x100014920]
xor r8d, r8d
mov edx, edi
call fcn.10000dc68
cmp rax, r13
je 0x10000c77d
cmp dword [rax + 4], 0x80000
jne 0x10000c77d
mov rcx, qword [rax + 0x10]
xor r8d, r8d
mov edx, r14d
call fcn.10000dc68
cmp rax, r13
je 0x10000c77d
mov ecx, dword [rax + 4]
mov edx, 0x10000
cmp ecx, edx
je 0x10000c798
cmp ecx, r13d
je 0x10000c79d
mov eax, r13d
cmp eax, r13d
jne 0x10000c61b
lea rcx, [rsp + 0x40]
call fcn.10000ab40
jmp 0x10000c5a1
cmp ecx, r13d
jne 0x10000c7a0
mov dword [rax + 4], edx
mov qword [rax + 0x10], rbx
mov eax, r15d
jmp 0x10000c780
lea edx, [rdi + rdi]
lea rcx, [rbx + 0x10]
call fcn.10000acbc
cmp eax, r13d
jmp 0x10000c671