Function at 0x403420
Capabilities:
Get common file path
Get file version info

Disassembly:
mov rax, rsp
sub rsp, 0x2b8
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax - 8], rbx
mov qword [rax - 0x10], rbp
mov qword [rax - 0x18], rsi
mov qword [rax - 0x20], rdi
mov qword [rax - 0x28], r12
mov qword [rax - 0x30], r13
mov rax, qword [0x00460ad8]
mov qword [rsp + 0x270], rax
mov r13, r8
mov r12, rdx
mov qword [rsp + 0x68], r8
mov dword [rsp + 0x30], 0
call fcn.0043a268
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
lea rdx, [0x00447646]
mov rbx, 0xffffffffffffffff
test rdx, 0xffffffffffff0000
jne 0x4034bc
movzx edi, dx
mov ecx, edi
call fcn.0043a254
test rax, rax
je 0x4034d8
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.00401b10
jmp 0x4034d8
xor eax, eax
mov rcx, rbx
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8d, [rcx - 1]
lea rcx, [rsp + 0x38]
call fcn.00401c90
nop
call fcn.0043a268
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
call fcn.0043a268
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x48], rdi
mov edx, 0x200
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov rdx, qword [r13]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x70]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebp, eax
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rsi, rax
test rax, rax
je 0x4036b1
mov r9, rax
mov r8d, ebp
mov edx, dword [rsp + 0x30]
lea rcx, [rsp + 0x70]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4036a8
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x50]
lea rdx, [0x004476ec]
mov rcx, rsi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4036b1
mov rax, qword [rsp + 0x50]
mov ecx, dword [rax + 0xc]
mov r8d, dword [rax + 8]
movzx eax, cx
shr ecx, 0x10
movzx r9d, r8w
shr r8d, 0x10
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
lea rdx, str._d._d._d._d
lea rcx, [rsp + 0x38]
call fcn.00402360
mov rsi, qword [rsp + 0x38]
mov rcx, qword [rsi - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rsi - 8], 0
jl 0x4035ec
cmp rax, qword [rsi - 0x18]
jne 0x4035ec
lea rbp, [rsi - 0x18]
lock inc dword [rsi - 8]
mov rdi, qword [rsp + 0x48]
jmp 0x403625
mov rax, qword [rax]
mov r8d, 1
mov edx, dword [rsi - 0x10]
call qword [rax]
mov rbp, rax
test rax, rax
jne 0x403608
call fcn.004015a0
int3
mov eax, dword [rsi - 0x10]
mov dword [rbp + 8], eax
mov eax, dword [rsi - 0x10]
inc eax
movsxd rdx, eax
mov r8, rsi
lea rcx, [rbp + 0x18]
mov r9, rdx
call fcn.00418060
lea rax, [rbp + 0x18]
mov qword [r12], rax
lea rdx, [rdi - 0x18]
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x403648
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.oledlg.dll_OleUIBusyA]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x403668
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.oledlg.dll_OleUIBusyA]
nop
mov eax, ebx
lock xadd dword [rsi - 8], eax
dec eax
test eax, eax
jg 0x403684
mov rcx, qword [rsi - 0x18]
mov rax, qword [rcx]
lea rdx, [rsi - 0x18]
call qword [rax + reloc.oledlg.dll_OleUIBusyA]
nop
mov rdx, qword [r13]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x4036a0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.oledlg.dll_OleUIBusyA]
mov rax, r12
jmp 0x403795
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rsi, qword [rsp + 0x38]
mov rcx, qword [rsi - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rsi - 8], 0
jl 0x4036de
cmp rax, qword [rsi - 0x18]
jne 0x4036de
lea rbp, [rsi - 0x18]
lock inc dword [rsi - 8]
mov rdi, qword [rsp + 0x48]
jmp 0x403717
mov rax, qword [rax]
mov r8d, 1
mov edx, dword [rsi - 0x10]
call qword [rax]
mov rbp, rax
test rax, rax
jne 0x4036fa
call fcn.004015a0
int3
mov eax, dword [rsi - 0x10]
mov dword [rbp + 8], eax
mov eax, dword [rsi - 0x10]
inc eax
movsxd rdx, eax
mov r8, rsi
lea rcx, [rbp + 0x18]
mov r9, rdx
call fcn.00418060
lea rax, [rbp + 0x18]
mov qword [r12], rax
lea rdx, [rdi - 0x18]
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x40373a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.oledlg.dll_OleUIBusyA]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x40375a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.oledlg.dll_OleUIBusyA]
nop
mov eax, ebx
lock xadd dword [rsi - 8], eax
dec eax
test eax, eax
jg 0x403776
mov rcx, qword [rsi - 0x18]
mov rax, qword [rcx]
lea rdx, [rsi - 0x18]
call qword [rax + reloc.oledlg.dll_OleUIBusyA]
nop
mov rdx, qword [r13]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x403792
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.oledlg.dll_OleUIBusyA]
mov rax, r12
mov rcx, qword [rsp + 0x270]
call fcn.004306c0
mov rbx, qword [rsp + 0x2b0]
mov rbp, qword [rsp + 0x2a8]
mov rsi, qword [rsp + 0x2a0]
mov rdi, qword [rsp + 0x298]
mov r12, qword [rsp + 0x290]
mov r13, qword [rsp + 0x288]
add rsp, 0x2b8
ret