Function at 0x46d270
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov dword [rax + 0x10], edx
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rax - 0x2c8]
sub rsp, 0x3a0
lea rbx, [rcx + 0x8558]
mov r14, rcx
cmp qword [rbx + 8], 0
lea r15, [rcx + 0xa8]
jne 0x46d322
mov rax, r15
mov edx, 0x125
neg rax
sbb rcx, rcx
and rcx, r14
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rdx, qword [rbx]
mov rcx, rbx
mov rdi, rax
call qword [rdx + select]
mov rsi, rax
mov rax, qword [rbx + 0x28]
test rax, rax
jne 0x46d2ed
call fcn.004222f0
mov qword [rbx + 0x28], rax
test rax, rax
je 0x46d322
mov r8, rbx
mov rdx, rsi
mov rcx, rax
call fcn.00422420
mov rcx, qword [rbx + 0x28]
call fcn.0042236c
mov r8, rax
mov edx, 0xfffffffc
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
test rax, rax
je 0x46d322
mov qword [rbx + 0x40], rax
mov qword [rbx + 8], rdi
lea rbx, [r14 + 0x85a0]
cmp qword [rbx + 8], 0
jne 0x46d356
mov rax, r15
mov edx, 0x155
neg rax
sbb rcx, rcx
and rcx, r14
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rdx, rax
mov rcx, rbx
call fcn.0041abb8
lea rbx, [r14 + 0x84b8]
cmp qword [rbx + 8], 0
jne 0x46d38a
mov rax, r15
mov edx, 0x154
neg rax
sbb rcx, rcx
and rcx, r14
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rdx, rax
mov rcx, rbx
call fcn.0041abb8
mov rdx, qword [r14 + 8]
mov r8d, 3
call fcn.0045f04c
mov rcx, qword [r14 + 0x8560]
mov r9d, 0x80c086
xor r8d, r8d
mov edx, 0x409
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [r14 + 0x8560]
mov r9d, reloc.WS2_32.dll_WSAStartup
xor r8d, r8d
mov edx, 0x401
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [r14 + 0x8560]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x402
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [r14 + 0x8168]
mov rdx, qword [r14 + 8]
mov qword [r14 + 0x8160], rdx
test rcx, rcx
je 0x46d403
call fcn.004778d0
mov r13d, 1
mov rcx, r14
mov r8b, r13b
mov dl, r13b
call fcn.0046cff8
mov r8, qword [r14 + 0x84b0]
lea edx, [r13 - 0xd]
mov rcx, qword [r14 + 0x84c0]
call qword [sym.imp.USER32.dll_SetClassLongPtrW]
mov r8, qword [r14 + 0x84a8]
lea edx, [r13 + 0x2f]
mov rcx, qword [r14 + 0x85a8]
mov r9d, r13d
call qword [sym.imp.USER32.dll_SendMessageW]
xor edx, edx
lea rcx, [rbp + 0x90]
mov r8d, 0x208
call fcn.00424830
mov rcx, qword [r14 + 8]
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, rax
lea edx, [r13 + 1]
mov rbx, rax
call qword [sym.imp.USER32.dll_GetDlgItem]
lea rdx, [rsp + 0x60]
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.USER32.dll_GetWindowRect]
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowRect]
mov esi, dword [rsp + 0x68]
lea rdx, [rsp + 0x40]
sub esi, dword [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x46d4bf
lea rdx, [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [rsp + 0x48]
lea eax, [rsi - 2]
sub ecx, dword [rsp + 0x40]
lea r8, [rbp + 0x90]
mov dword [rsp + 0x50], eax
mov r9d, 0x104
mov edx, 0x27
lea eax, [rsi + rcx*2]
add ecx, 0xfffffffe
add ecx, eax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x5c], eax
mov dword [rsp + 0x58], ecx
call fcn.0045f794
mov edx, 0xffffffec
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowLongW]
mov edx, 0xfffffff0
mov rcx, rdi
mov esi, eax
call qword [sym.imp.USER32.dll_GetWindowLongW]
mov qword [rsp + 0x30], 0x101
lea rcx, [r14 + 0x85e8]
mov dword [rsp + 0x28], esi
lea r9, [rbp + 0x90]
lea r8, [rsp + 0x50]
mov dword [rsp + 0x20], eax
mov rdx, rbx
call fcn.0041be08
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
lea edx, [r9 + 0x31]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [r14 + 0x85f0]
mov r9, r13
mov r8, rax
mov edx, 0x30
call qword [sym.imp.USER32.dll_SendMessageW]
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov rcx, qword [r15]
add r14, 0xeb0
mov qword [rcx + 0xc38], rax
mov eax, dword [0x004bb178]
test eax, eax
jg 0x46d5dd
xor edx, edx
lea rcx, [rsp + 0x74]
mov r8d, pe_nt_image_headers64
call fcn.00424830
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x70], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x46d6ba
imul eax, dword [rsp + 0x74], 0x64
add eax, dword [rsp + 0x78]
mov dword [0x004bb17c], eax
mov eax, dword [rsp + 0x7c]
mov dword [0x004bb178], eax
cmp eax, 0x1db1
jl 0x46d6ba
xor r9d, r9d
mov qword [rsp + 0x20], r14
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 0x24]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x46d6ba
mov rcx, r14
call fcn.0041c924
lea rcx, str.oledlg.dll
mov bl, al
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x46d633
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [r14 + 0x3711], r13b
cmp byte [r14 + 0x3711], 0
je 0x46d641
test bl, bl
je 0x46d6ba
mov rcx, qword [r14 + 0x210]
test rcx, rcx
je 0x46d682
and dword [rbp + 0x2d8], 0
lea rdx, [rbp + 0x2d8]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [rbp + 0x2d8], 0x103
je 0x46d6ba
mov rcx, qword [r14 + 0x210]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [r14 + 0x210], 0
and dword [rbp + 0x2d8], 0
lea rcx, [rbp + 0x2d8]
mov qword [rsp + 0x28], rcx
lea r8, [0x0041ce14]
xor ecx, ecx
mov dword [rsp + 0x20], 0x10000
mov r9, r14
mov edx, 0x400000
call fcn.00437280
mov qword [r14 + 0x210], rax
lea r11, [rsp + 0x3a0]
mov rax, r13
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret