Function at 0x100013044
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.10000de24
mov rdi, rax
cmp rax, r13
je 0x1000132fe
mov r8d, dword [rsp + 0x98]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, r13d
je 0x100013314
mov edx, dword [rsp + 0x98]
lea ecx, [rdx - 1]
cmp eax, ecx
jae 0x10001308a
xor edx, edx
mov rcx, rdi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [rsp + 0x98], eax
cmp eax, r13d
jne 0x10001311d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, r13d
jne 0x100013314
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, r13d
jne 0x100013314
mov ecx, 0x57
jmp 0x10001330e
add eax, 0xa
mov ecx, eax
mov dword [rsp + 0x98], eax
call fcn.100010558
mov rbx, rax
mov qword [rsp + 0x30], rax
cmp rax, r13
je 0x100013314
mov r8d, dword [rsp + 0x98]
mov r9, rax
xor edx, edx
mov rcx, rdi
call sub.VERSION.dll_GetFileVersionInfoW
cmp eax, r13d
jne 0x100013168
lea rcx, [rsp + 0x30]
call fcn.10001047c
jmp 0x100013314
lea r9, [rsp + 0xa0]
lea r8, [rsp + 0x38]
lea rdx, [0x100001cd0]
mov rcx, rbx
call sub.VERSION.dll_VerQueryValueW
cmp eax, r13d
je 0x100013159
xor edx, edx
mov r9d, r15d
mov ecx, r14d
lea r8d, [rdx + 0x40]
call fcn.10000de24
test dword [rsp + 0xa0], 0xfffffffc
mov qword [rsp + 0xa8], r13
mov r12, rax
mov edi, r13d
jbe 0x100013159
mov rsi, r13
mov rdx, qword [rsp + 0x38]
lea r8, [0x100001d10]
movzx ecx, word [rsi + rdx + 2]
movzx r9d, word [rsi + rdx]
mov edx, 0x40
mov dword [rsp + 0x20], ecx
mov rcx, r12
call fcn.100001db8
lea r9, [rsp + 0x98]
lea r8, [rsp + 0xa8]
mov rdx, r12
mov rcx, rbx
call sub.VERSION.dll_VerQueryValueW
cmp eax, r13d
jne 0x100013221
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 0x1000131b8
jmp 0x100013229
mov rcx, qword [rsp + 0xa8]
cmp rcx, r13
je 0x100013159
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 4
ja 0x100013260
lea rcx, [rsp + 0x30]
call fcn.10001047c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, r13d
jne 0x100013314
mov ecx, 0x42b
jmp 0x10001330e
mov rcx, qword [rsp + 0xa8]
lea rdx, [0x100001d60]
xor r9d, r9d
mov r8d, r15d
call fcn.10000f2a4
cmp eax, 0xffffffff
je 0x1000132b0
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [0x100001d60]
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 0x100013356
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.10000de24
mov rbx, rax
cmp rax, r13
jne 0x10001332e
lea rcx, [rsp + 0x30]
call fcn.10001047c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, r13d
jne 0x100013314
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, [0x100001d70]
mov rcx, rax
mov qword [rsp + 0x20], rbp
call fcn.100001db8
jmp 0x10001347c
mov rsi, qword [rsp + 0xa8]
cmp rsi, r13
jne 0x100013373
mov ecx, r14d
call fcn.10000dda0
mov rbx, rax
jmp 0x100013473
call fcn.10000dcac
cmp eax, r13d
jne 0x100013385
mov rbx, r13
jmp 0x100013473
mov rcx, qword [0x1000176f8]
mov edi, 3
mov edx, edi
call fcn.100010f88
mov r10d, eax
cmp eax, r14d
ja 0x1000133c4
mov rcx, qword [0x1000176f8]
call fcn.100010fd0
cmp rax, r13
je 0x10001337d
lea edx, [rdi + 5]
mov rcx, rax
sub edx, r10d
call fcn.100010e10
cmp eax, 0xffffffff
je 0x10001337d
mov rcx, qword [0x1000176f8]
mov r8d, r14d
mov edx, edi
call fcn.10001137c
cmp eax, r13d
je 0x1000134e0
mov rcx, qword [0x1000176f8]
mov r8d, r14d
mov edx, edi
call fcn.1000111c8
mov rbx, rax
cmp rax, r13
je 0x10001337d
lea rdx, [0x100001bd8]
mov r8, r14
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__memicmp]
cmp eax, r13d
jne 0x10001337d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [rbx + 8]
lea edi, [rax + 1]
cmp edi, ecx
ja 0x100013435
cmp edi, 0x100
jbe 0x100013456
lea eax, [rdi + rdi]
cmp eax, ecx
jae 0x100013456
cmp ecx, r13d
jne 0x100013585
lea ecx, [rdi + rdi]
call fcn.100010558
mov qword [rbx + 0x10], rax
cmp rax, r13
je 0x10001337d
mov dword [rbx + 8], edi
cmp qword [rbx + 0x10], r13
je 0x10001337d
mov rcx, qword [rbx + 0x10]
mov r8d, edi
mov rdx, rsi
call fcn.10000f884
mov rbx, qword [rbx + 0x10]
cmp rbx, r13
je 0x1000132f4
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.10000de24
mov rbx, rax
cmp rax, r13
je 0x1000132f4
mov ecx, 0x15ed
call fcn.10000e684
mov r9, qword [rsp + 0xa8]
mov rdx, rdi
mov r8, rax
mov rcx, rbx
call fcn.100001db8
lea rcx, [rsp + 0x30]
call fcn.10001047c
mov rax, rbx
jmp 0x100013316
mov ecx, 0x18
call fcn.100010558
mov rbx, rax
mov qword [rsp + 0x40], rax
cmp rax, r13
je 0x10001337d
mov dword [rax + 8], r13d
lea rdx, [0x100001bd8]
mov r8d, r14d
mov rcx, rax
mov qword [rax + 0x10], r13
call fcn.10000f7fc
mov rcx, qword [0x1000176f8]
xor r8d, r8d
mov edx, edi
call fcn.100010754
cmp rax, r13
je 0x100013559
cmp dword [rax + 4], 0x80000
jne 0x100013559
mov rcx, qword [rax + 0x10]
xor r8d, r8d
mov edx, r14d
call fcn.100010754
cmp rax, r13
je 0x100013559
mov ecx, dword [rax + 4]
mov edx, 0x10000
cmp ecx, edx
je 0x100013574
cmp ecx, r13d
je 0x100013579
mov eax, r13d
cmp eax, r13d
jne 0x1000133f7
lea rcx, [rsp + 0x40]
call fcn.10001047c
jmp 0x10001337d
cmp ecx, r13d
jne 0x10001357c
mov dword [rax + 4], edx
mov qword [rax + 0x10], rbx
mov eax, r15d
jmp 0x10001355c
lea edx, [rdi + rdi]
lea rcx, [rbx + 0x10]
call fcn.1000105f8
cmp eax, r13d
jmp 0x10001344d