Function at 0x100010034
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.10000a744
mov rdi, rax
cmp rax, r13
je 0x1000102ee
mov r8d, dword [rsp + 0x98]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, r13d
je 0x100010304
mov edx, dword [rsp + 0x98]
lea ecx, [rdx - 1]
cmp eax, ecx
jae 0x10001007a
xor edx, edx
mov rcx, rdi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [rsp + 0x98], eax
cmp eax, r13d
jne 0x10001010d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, r13d
jne 0x100010304
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, r13d
jne 0x100010304
mov ecx, 0x57
jmp 0x1000102fe
add eax, 0xa
mov ecx, eax
mov dword [rsp + 0x98], eax
call fcn.10000ce78
mov rbx, rax
mov qword [rsp + 0x30], rax
cmp rax, r13
je 0x100010304
mov r8d, dword [rsp + 0x98]
mov r9, rax
xor edx, edx
mov rcx, rdi
call sub.VERSION.dll_GetFileVersionInfoW
cmp eax, r13d
jne 0x100010158
lea rcx, [rsp + 0x30]
call fcn.10000cd9c
jmp 0x100010304
lea r9, [rsp + 0xa0]
lea r8, [rsp + 0x38]
lea rdx, [0x100001cb8]
mov rcx, rbx
call sub.VERSION.dll_VerQueryValueW
cmp eax, r13d
je 0x100010149
xor edx, edx
mov r9d, r15d
mov ecx, r14d
lea r8d, [rdx + 0x40]
call fcn.10000a744
test dword [rsp + 0xa0], 0xfffffffc
mov qword [rsp + 0xa8], r13
mov r12, rax
mov edi, r13d
jbe 0x100010149
mov rsi, r13
mov rdx, qword [rsp + 0x38]
lea r8, [0x100001cf0]
movzx ecx, word [rsi + rdx + 2]
movzx r9d, word [rsi + rdx]
mov edx, 0x40
mov dword [rsp + 0x20], ecx
mov rcx, r12
call fcn.100008f30
lea r9, [rsp + 0x98]
lea r8, [rsp + 0xa8]
mov rdx, r12
mov rcx, rbx
call sub.VERSION.dll_VerQueryValueW
cmp eax, r13d
jne 0x100010211
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 0x1000101a8
jmp 0x100010219
mov rcx, qword [rsp + 0xa8]
cmp rcx, r13
je 0x100010149
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 4
ja 0x100010250
lea rcx, [rsp + 0x30]
call fcn.10000cd9c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, r13d
jne 0x100010304
mov ecx, 0x42b
jmp 0x1000102fe
mov rcx, qword [rsp + 0xa8]
lea rdx, [0x100001d40]
xor r9d, r9d
mov r8d, r15d
call fcn.10000bba4
cmp eax, 0xffffffff
je 0x1000102a0
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [0x100001d40]
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 0x100010346
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.10000a744
mov rbx, rax
cmp rax, r13
jne 0x10001031e
lea rcx, [rsp + 0x30]
call fcn.10000cd9c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, r13d
jne 0x100010304
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, [0x100001d50]
mov rcx, rax
mov qword [rsp + 0x20], rbp
call fcn.100008f30
jmp 0x10001046c
mov rsi, qword [rsp + 0xa8]
cmp rsi, r13
jne 0x100010363
mov ecx, r14d
call fcn.10000a6c0
mov rbx, rax
jmp 0x100010463
call fcn.10000a5cc
cmp eax, r13d
jne 0x100010375
mov rbx, r13
jmp 0x100010463
mov rcx, qword [0x100017740]
mov edi, 3
mov edx, edi
call fcn.10000e800
mov r10d, eax
cmp eax, r14d
ja 0x1000103b4
mov rcx, qword [0x100017740]
call fcn.10000e848
cmp rax, r13
je 0x10001036d
lea edx, [rdi + 5]
mov rcx, rax
sub edx, r10d
call fcn.10000e738
cmp eax, 0xffffffff
je 0x10001036d
mov rcx, qword [0x100017740]
mov r8d, r14d
mov edx, edi
call fcn.10000ebf4
cmp eax, r13d
je 0x1000104d0
mov rcx, qword [0x100017740]
mov r8d, r14d
mov edx, edi
call fcn.10000ea40
mov rbx, rax
cmp rax, r13
je 0x10001036d
lea rdx, [0x100001ba0]
mov r8, r14
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__memicmp]
cmp eax, r13d
jne 0x10001036d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [rbx + 8]
lea edi, [rax + 1]
cmp edi, ecx
ja 0x100010425
cmp edi, 0x100
jbe 0x100010446
lea eax, [rdi + rdi]
cmp eax, ecx
jae 0x100010446
cmp ecx, r13d
jne 0x100010575
lea ecx, [rdi + rdi]
call fcn.10000ce78
mov qword [rbx + 0x10], rax
cmp rax, r13
je 0x10001036d
mov dword [rbx + 8], edi
cmp qword [rbx + 0x10], r13
je 0x10001036d
mov rcx, qword [rbx + 0x10]
mov r8d, edi
mov rdx, rsi
call fcn.10000c184
mov rbx, qword [rbx + 0x10]
cmp rbx, r13
je 0x1000102e4
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.10000a744
mov rbx, rax
cmp rax, r13
je 0x1000102e4
mov ecx, 0x15ed
call fcn.10000afb8
mov r9, qword [rsp + 0xa8]
mov rdx, rdi
mov r8, rax
mov rcx, rbx
call fcn.100008f30
lea rcx, [rsp + 0x30]
call fcn.10000cd9c
mov rax, rbx
jmp 0x100010306
mov ecx, 0x18
call fcn.10000ce78
mov rbx, rax
mov qword [rsp + 0x40], rax
cmp rax, r13
je 0x10001036d
mov dword [rax + 8], r13d
lea rdx, [0x100001ba0]
mov r8d, r14d
mov rcx, rax
mov qword [rax + 0x10], r13
call fcn.10000c0fc
mov rcx, qword [0x100017740]
xor r8d, r8d
mov edx, edi
call fcn.10000e12c
cmp rax, r13
je 0x100010549
cmp dword [rax + 4], 0x80000
jne 0x100010549
mov rcx, qword [rax + 0x10]
xor r8d, r8d
mov edx, r14d
call fcn.10000e12c
cmp rax, r13
je 0x100010549
mov ecx, dword [rax + 4]
mov edx, 0x10000
cmp ecx, edx
je 0x100010564
cmp ecx, r13d
je 0x100010569
mov eax, r13d
cmp eax, r13d
jne 0x1000103e7
lea rcx, [rsp + 0x40]
call fcn.10000cd9c
jmp 0x10001036d
cmp ecx, r13d
jne 0x10001056c
mov dword [rax + 4], edx
mov qword [rax + 0x10], rbx
mov eax, r15d
jmp 0x10001054c
lea edx, [rdi + rdi]
lea rcx, [rbx + 0x10]
call fcn.10000cf18
cmp eax, r13d
jmp 0x10001043d