Function at 0x100407bc0
Capabilities:
Get file version info

Disassembly:
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x17c0]
mov eax, 0x18c0
call fcn.100402360
sub rsp, rax
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x18f8], rbx
mov qword [rsp + 0x1900], rsi
mov rax, qword [0x10042d0d0]
xor rax, rsp
mov qword [rbp + 0x17b0], rax
mov rsi, rcx
mov r8d, reloc.sqldk.dll_Ordinal_260
lea rdx, [rbp + 0xf80]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor r15d, r15d
mov word [rbp + 0x1186], r15w
test eax, eax
jne 0x100407c57
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x70]
call qword [sym.imp.sqldk.dll_Ordinal_479]
lea rdx, [rsp + 0x70]
mov ecx, 0x283e
call fcn.1004137c0
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], Ordinal_260
lea r9, [rbp + 0x13a0]
mov r8d, 4
lea rdx, [rbp + 0xf70]
lea rcx, [rbp + 0xf80]
call qword [sym.imp.MSVCR100.dll__wsplitpath_s]
call qword [sym.imp.sqldk.dll_Ordinal_403]
mov r9, rax
mov qword [rsp + 0x30], rsi
lea rax, [rbp + 0x13a0]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0xf70]
mov qword [rsp + 0x20], rax
lea r8, str._s_s_s
mov edx, 0x105
lea rcx, [rbp + 0x1190]
call fcn.100405260
mov ebx, eax
mov r12d, Ordinal_516
test eax, eax
jns 0x100407d29
mov ecx, eax
call qword [sym.imp.sqlmin.dll_Ordinal_1457]
call qword [sym.imp.sqldk.dll_Ordinal_403]
mov r9, rax
mov dword [rsp + 0x28], ebx
lea rbx, str.String_Format_Error
mov qword [rsp + 0x20], rbx
lea r8, str._hs__HRESULT_0x_x_
mov edx, r12d
lea rcx, [rbp + 0x15b0]
call fcn.10040d510
test eax, eax
mov rcx, rbx
js 0x100407d24
lea rcx, [rbp + 0x15b0]
call fcn.100411330
mov dword [rsp + 0x50], r15d
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x1190]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test eax, eax
jne 0x100407d74
lea r9, [rbp + 0x13a0]
lea r8, [rbp + 0xf70]
mov rdx, rsi
mov ecx, 0x19a1
call fcn.1004137c0
mov edx, 0x19a1
xor ecx, ecx
mov r8d, reloc.sqldk.dll_Ordinal_1066
call qword [sym.imp.sqldk.dll_Ordinal_816]
call fcn.10040d5a0
mov r14, rax
cmp rdi, 0xffffffffffffffff
jne 0x100407d8a
lea ecx, [rdi + 0x20]
call fcn.100403110
mov r10, qword [r14]
mov byte [rsp + 0x20], 6
mov r9d, Ordinal_393
lea r8, str.e:_sql12_main_t_sql_ntdbmsksource_serverma.cpp
mov rdx, rdi
mov rcx, r14
call qword [r10 + Ordinal_73]
mov rbx, rax
test rax, rax
jne 0x100407db9
lea ecx, [rax + 0x7b]
call fcn.100403110
mov qword [rsp + 0x60], rbx
mov r9, rbx
mov r8d, edi
mov edx, dword [rsp + 0x50]
lea rcx, [rbp + 0x1190]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x100407df9
mov rdx, rsi
mov ecx, 0x284d
call fcn.1004137c0
mov edx, 0x284d
xor ecx, ecx
mov r8d, reloc.sqldk.dll_Ordinal_1066
call qword [sym.imp.sqldk.dll_Ordinal_816]
mov qword [rsp + 0x58], r15
mov dword [rsp + 0x54], r15d
lea r9, [rsp + 0x54]
lea r8, [rsp + 0x58]
lea rdx, [0x1004223e0]
mov rcx, rbx
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x100407e41
mov rdx, rsi
mov ecx, 0x284d
call fcn.1004137c0
mov edx, 0x284d
xor ecx, ecx
mov r8d, reloc.sqldk.dll_Ordinal_1066
call qword [sym.imp.sqldk.dll_Ordinal_816]
mov r9, qword [rsp + 0x58]
mov edx, 0x7d0
mov r8d, 0xc
cmp r8w, word [r9 + 0x12]
jne 0x100407e66
cmp r15w, word [r9 + 0x10]
jne 0x100407e66
cmp dx, word [r9 + 0x16]
je 0x100407eba
movzx eax, word [r9 + 0x16]
movzx ecx, word [r9 + 0x10]
movzx r9d, word [r9 + 0x12]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x30], r9d
lea rax, [rbp + 0x1190]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edx
xor r9d, r9d
lea rdx, [rbp + 0xf80]
mov ecx, 0x19a2
call fcn.1004137c0
mov edx, 0x284d
xor ecx, ecx
mov r8d, reloc.sqldk.dll_Ordinal_1066
call qword [sym.imp.sqldk.dll_Ordinal_816]
nop
mov rax, rbx
and rax, 0xffffffffffffe000
je 0x100407ed0
cmp word [rax + 4], r12w
jne 0x100407ed0
mov rax, qword [rax + 0x28]
mov rax, qword [rax + 8]
mov rcx, qword [rax + 0x10]
dec rcx
not rcx
and rcx, rbx
je 0x100407eee
cmp word [rcx + 4], r12w
jne 0x100407eee
mov rcx, qword [rcx + 0x28]
mov rcx, qword [rcx + 8]
test byte [rcx + 0x28], 8
jne 0x100407f01
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + 0x28]
mov rcx, qword [rbp + 0x17b0]
xor rcx, rsp
call fcn.1004013c0
lea r11, [rsp + 0x18c0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret