Function at 0x2bbeeabc0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x278
mov rbx, qword [0x2bc041fd0]
mov rax, qword [rbx]
mov qword [rsp + 0x2c0], rcx
mov r14, rdx
lea rcx, [0x2bc0630a8]
mov edx, 0x38
mov dword [rsp + 0x2d0], r8d
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
call qword [rax + 0x998]
mov eax, dword [rax + 0x30]
mov dword [rsp + 0x5c], eax
cmp eax, 1
jne 0x2bbeeb69f
mov rcx, qword [r14]
call sym.tcl9tk90.dll_Tk_MakeWindowExist
mov rax, qword [r14]
mov rcx, qword [rax + 0x28]
call sym.tcl9tk90.dll_Tk_GetHWND
cmp qword [r14 + 0x18], 0
mov qword [rsp + 0x60], rax
je 0x2bbeeb35a
mov rcx, qword [r14 + 0x28]
mov qword [rsp + 0x48], rcx
test rcx, rcx
je 0x2bbeeac69
mov rax, qword [rbx]
xor edx, edx
call qword [rax + 0x1468]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x90]
mov rcx, rax
mov rdi, rax
mov qword [rsp + 0x68], rax
call sym.TkInitFileFilters
mov r8, qword [r14 + 0x18]
mov rcx, qword [rsp + 0x2c0]
mov rdx, rdi
mov r9d, 1
call sym.TkGetFileFilters
test eax, eax
jne 0x2bbeeb342
cmp qword [rsp + 0x90], 0
je 0x2bbeeb35a
mov dword [rsp + 0x38], eax
mov rax, qword [rbx]
lea rbp, [rsp + 0xb0]
lea rsi, [rsp + 0x190]
mov rcx, rbp
call qword [rax + 0x3e0]
mov rax, qword [rbx]
mov rcx, rsi
call qword [rax + 0x3e0]
movsxd rcx, dword [rsp + 0xa0]
mov rax, qword [rbx]
shl rcx, 4
call qword [rax + 0x28]
mov r12, qword [rsp + 0x90]
mov qword [rsp + 0x50], rax
test r12, r12
je 0x2bbeeb506
xor r9d, r9d
mov qword [rsp + 0x2c8], r14
mov r14d, dword [rsp + 0x38]
mov r13, rax
mov dword [rsp + 0x40], r9d
lea rdi, [0x2bbff6d72]
nop dword [rax]
mov rcx, qword [rsp + 0x48]
add r14d, 1
test rcx, rcx
je 0x2bbeead4e
mov rdx, qword [r12 + 8]
call sym.strcmp
test eax, eax
mov eax, dword [rsp + 0x40]
cmove eax, r14d
mov dword [rsp + 0x40], eax
mov rax, qword [rbx]
mov rcx, rbp
call qword [rax + 0x3e0]
mov rax, qword [rbx]
mov r8, rbp
mov rdx, 0xffffffffffffffff
mov rcx, qword [r12 + 8]
call qword [rax + 0xb28]
mov rax, qword [rsp + 0xb8]
lea r15, [rax + 2]
mov rax, qword [rbx]
mov rcx, r15
call qword [rax + 0x28]
mov rdx, qword [rsp + 0xb0]
mov r8, r15
mov qword [r13], rax
mov rcx, rax
call sym.memmove
mov rax, qword [rbx]
mov rcx, rbp
call qword [rax + 0x3d0]
mov r15, qword [r12 + 0x10]
lea rdx, [0x2bbff6c7c]
test r15, r15
je 0x2bbeeae1b
mov qword [rsp + 0x38], rbp
mov rbp, r15
nop dword [rax + rax]
mov r15, qword [rbp + 8]
test r15, r15
je 0x2bbeeae0d
nop dword [rax]
mov rax, qword [rbx]
mov r8, 0xffffffffffffffff
mov rcx, rsi
call qword [rax + 0x3b8]
mov rax, qword [rbx]
mov rdx, qword [r15 + 8]
mov rcx, rsi
mov r8, 0xffffffffffffffff
call qword [rax + 0x3b8]
mov r15, qword [r15]
mov rdx, rdi
test r15, r15
jne 0x2bbeeadd8
mov rbp, qword [rbp]
test rbp, rbp
jne 0x2bbeeadc8
mov rbp, qword [rsp + 0x38]
mov rax, qword [rbx]
mov rcx, rbp
add r13, 0x10
call qword [rax + 0x3e0]
mov rax, qword [rbx]
mov rdx, 0xffffffffffffffff
mov r8, rbp
mov rcx, qword [rsp + 0x190]
call qword [rax + 0xb28]
mov rax, qword [rsp + 0xb8]
lea r8, [rax + 2]
mov rax, qword [rbx]
mov rcx, r8
mov qword [rsp + 0x38], r8
call qword [rax + 0x28]
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0xb0]
mov qword [r13 - 8], rax
mov rcx, rax
call sym.memmove
mov rax, qword [rbx]
mov rcx, rbp
call qword [rax + 0x3d0]
mov rax, qword [rbx]
xor edx, edx
mov rcx, rsi
call qword [rax + 0x3f0]
mov r12, qword [r12]
test r12, r12
jne 0x2bbeead28
mov r9d, dword [rsp + 0x40]
mov edx, 1
mov r14, qword [rsp + 0x2c8]
test r9d, r9d
cmovne edx, r9d
mov ebp, edx
mov rax, qword [rbx]
mov rcx, rsi
call qword [rax + 0x3d0]
mov rcx, qword [rsp + 0x68]
mov r12d, dword [rsp + 0xa0]
call sym.TkFreeFileFilters
mov eax, dword [rsp + 0x2d0]
sub eax, 1
cmp eax, 1
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
jbe 0x2bbeeb3a3
lea r9, [0x2bbff72b0]
mov r8d, 1
xor edx, edx
lea rcx, [0x2bbff72d0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
xor esi, esi
test edi, edi
js 0x2bbeeb2ac
mov rcx, qword [rsp + 0x78]
lea rdx, [rsp + 0x70]
mov rax, qword [rcx]
call qword [rax + 0x50]
mov edi, eax
test eax, eax
js 0x2bbeeb2ac
mov rcx, qword [rsp + 0x78]
cmp qword [rsp + 0x50], 0
mov rax, qword [rcx]
je 0x2bbeeaf79
mov r8, qword [rsp + 0x50]
mov edx, r12d
call qword [rax + 0x20]
mov edi, eax
test eax, eax
js 0x2bbeeb2ac
mov rcx, qword [rsp + 0x78]
mov edx, ebp
mov rax, qword [rcx]
call qword [rax + 0x28]
mov edi, eax
test eax, eax
js 0x2bbeeb2ac
mov rcx, qword [rsp + 0x78]
cmp dword [rsp + 0x2d0], 2
mov eax, dword [rsp + 0x70]
je 0x2bbeeb3d1
and eax, 0xffffffdf
or eax, 0x940
mov edx, eax
mov r10d, dword [r14 + 0x110]
mov eax, edx
and ah, 0xfd
test r10d, r10d
je 0x2bbeeafab
mov eax, edx
or ah, 2
mov r9d, dword [r14 + 0x114]
mov edx, eax
and edx, 0xfffffffd
test r9d, r9d
je 0x2bbeeafc1
or eax, 2
mov edx, eax
mov rax, qword [rcx]
mov dword [rsp + 0x70], edx
xor esi, esi
call qword [rax + 0x48]
mov edi, eax
test eax, eax
js 0x2bbeeb2ac
mov rcx, qword [r14 + 8]
test rcx, rcx
je 0x2bbeeb05a
mov rax, qword [rbx]
xor edx, edx
lea rsi, [rsp + 0x190]
call qword [rax + 0x1468]
mov rcx, rsi
mov rdi, rax
mov rax, qword [rbx]
call qword [rax + 0x3e0]
mov rax, qword [r14 + 8]
mov r8, rsi
mov rcx, rdi
mov rdx, qword [rax + 0x10]
mov rax, qword [rbx]
call qword [rax + 0xb28]
cmp word [rax], 0x2e
mov qword [rsp + 0x88], rax
mov rdx, rax
jne 0x2bbeeb036
add rdx, 2
mov qword [rsp + 0x88], rdx
mov rcx, qword [rsp + 0x78]
mov rax, qword [rcx]
call qword [rax + 0xb0]
mov rcx, rsi
mov edi, eax
mov rax, qword [rbx]
call qword [rax + 0x3d0]
test edi, edi
js 0x2bbeeb2aa
mov rcx, qword [r14 + 0x10]
test rcx, rcx
je 0x2bbeeb0cb
mov rax, qword [rbx]
xor edx, edx
lea rsi, [rsp + 0x190]
call qword [rax + 0x1468]
mov rcx, rsi
mov rdi, rax
mov rax, qword [rbx]
call qword [rax + 0x3e0]
mov rax, qword [r14 + 0x10]
mov rcx, rdi
mov r8, rsi
mov rdx, qword [rax + 0x10]
mov rax, qword [rbx]
call qword [rax + 0xb28]
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x88], rax
mov rdx, rax
mov rax, qword [rcx]
call qword [rax + 0x88]
mov rcx, rsi
mov edi, eax
mov rax, qword [rbx]
call qword [rax + 0x3d0]
test edi, edi
js 0x2bbeeb2aa
cmp word [r14 + 0x120], 0
je 0x2bbeeb0f4
mov rcx, qword [rsp + 0x78]
lea rdx, [r14 + 0x120]
xor esi, esi
mov rax, qword [rcx]
call qword [rax + 0x78]
mov edi, eax
test eax, eax
js 0x2bbeeb2ac
mov rcx, qword [r14 + 0x30]
mov rax, qword [rbx]
cmp byte [rcx], 0
je 0x2bbeeb1ad
mov rdx, 0xffffffffffffffff
call qword [rax + 0x1d0]
mov rcx, qword [rsp + 0x2c0]
add qword [rax], 1
mov rsi, rax
mov rax, qword [rbx]
mov rdx, rsi
call qword [rax + 0xe88]
mov rdi, rax
test rax, rax
je 0x2bbeeb196
add qword [rax], 1
mov rax, qword [rbx]
mov rcx, rdi
call qword [rax + 0xeb8]
mov rcx, rax
test rax, rax
je 0x2bbeeb17a
xor edx, edx
lea r9, [rsp + 0x80]
lea r8, [0x2bbff72a0]
call qword [sym.imp.SHELL32.dll_SHCreateItemFromParsingName]
test eax, eax
js 0x2bbeeb17a
mov rcx, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x80]
mov rax, qword [rcx]
call qword [rax + 0x60]
mov rax, qword [rdi]
lea rdx, [rax - 1]
mov qword [rdi], rdx
mov rdx, qword [rbx]
cmp rax, 1
jg 0x2bbeeb196
mov rcx, rdi
call qword [rdx + 0x100]
mov rax, qword [rsi]
lea rdx, [rax - 1]
mov qword [rsi], rdx
mov rdx, qword [rbx]
cmp rax, 1
jle 0x2bbeeb4f8
mov rax, qword [rbx]
mov ecx, 1
lea r15, [rsp + 0x190]
call qword [rax + 0x758]
mov rcx, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x60]
mov esi, eax
mov rax, qword [rcx]
call qword [rax + 0x18]
mov ecx, esi
mov edi, eax
mov rax, qword [rbx]
call qword [rax + 0x758]
mov rbp, qword [sym.imp.KERNEL32.dll_GetTickCount]
call rbp
mov r13, qword [sym.imp.USER32.dll_PeekMessageW]
lea esi, [rax + 0xfa]
jmp 0x2bbeeb216
mov dword [rsp + 0x20], 1
mov r9d, 0x20e
mov r8d, 0x200
xor edx, edx
mov rcx, r15
call r13
call rbp
cmp eax, esi
jb 0x2bbeeb1fa
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x2bbeeb234
mov edx, 1
mov rcx, rax
call qword [sym.imp.USER32.dll_EnableWindow]
mov rax, qword [rbx]
mov rcx, qword [rsp + 0x2c0]
call qword [rax + 0x6d8]
test edi, edi
js 0x2bbeeb510
mov rcx, qword [rsp + 0x78]
cmp dword [rsp + 0x2d0], 1
mov rax, qword [rcx]
je 0x2bbeeb3f5
lea rdx, [rsp + 0xb0]
call qword [rax + 0xa0]
mov edi, eax
test eax, eax
js 0x2bbeeb2aa
mov rcx, qword [rsp + 0xb0]
lea r8, [rsp + 0x88]
mov edx, 0x80058000
mov rax, qword [rcx]
call qword [rax + 0x28]
mov edi, eax
test eax, eax
jns 0x2bbeeb6b0
mov rcx, qword [rsp + 0xb0]
mov rax, qword [rcx]
call qword [rax + 0x10]
xor esi, esi
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x2bbeeb2bf
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x2bbeeb2cf
mov rax, qword [rcx]
call qword [rax + 0x10]
cmp qword [rsp + 0x50], 0
je 0x2bbeeb31d
test r12d, r12d
je 0x2bbeeb312
mov rax, qword [rsp + 0x50]
shl r12, 4
mov rbp, rax
add r12, rax
mov rcx, qword [rbp]
test rcx, rcx
je 0x2bbeeb2fa
mov rax, qword [rbx]
call qword [rax + 0x30]
mov rcx, qword [rbp + 8]
test rcx, rcx
je 0x2bbeeb309
mov rax, qword [rbx]
call qword [rax + 0x30]
add rbp, 0x10
cmp rbp, r12
jne 0x2bbeeb2eb
mov rax, qword [rbx]
mov rcx, qword [rsp + 0x50]
call qword [rax + 0x30]
test edi, edi
jne 0x2bbeeb36b
test rsi, rsi
je 0x2bbeeb33a
mov rax, qword [rbx]
mov rcx, qword [rsp + 0x2c0]
mov rdx, rsi
call qword [rax + 0x768]
mov dword [rsp + 0x5c], 0
mov eax, dword [rsp + 0x5c]
add rsp, 0x278
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov qword [rsp + 0x50], 0
xor r12d, r12d
jmp 0x2bbeeaed9
mov rdx, qword [rbx]
test rsi, rsi
je 0x2bbeeb383
mov rax, qword [rsi]
lea rcx, [rax - 1]
mov qword [rsi], rcx
cmp rax, 1
jle 0x2bbeeb3c6
mov rax, qword [rbx]
mov ecx, edi
mov rbx, qword [rax + 0x768]
call sym.TkWin32ErrorObj
mov rcx, qword [rsp + 0x2c0]
mov rdx, rax
call rbx
jmp 0x2bbeeb342
lea r9, [0x2bbff72c0]
mov r8d, 1
xor edx, edx
lea rcx, [0x2bbff72e0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
jmp 0x2bbeeaf14
mov rcx, rsi
call qword [rdx + 0x100]
jmp 0x2bbeeb383
mov r11d, dword [r14 + 0x118]
mov edx, eax
or edx, 0x1960
test r11d, r11d
jne 0x2bbeeaf95
or eax, 0x960
mov edx, eax
jmp 0x2bbeeaf95
mov r8d, dword [r14 + 0x110]
test r8d, r8d
je 0x2bbeeb263
lea rdx, [rsp + 0x90]
call qword [rax + 0xd8]
mov edi, eax
test eax, eax
js 0x2bbeeb2aa
mov rcx, qword [rsp + 0x90]
lea rdx, [rsp + 0x74]
mov rax, qword [rcx]
call qword [rax + 0x38]
mov ecx, dword [rsp + 0x74]
xor edx, edx
mov edi, eax
mov rax, qword [rbx]
call qword [rax + 0x1b8]
mov rcx, qword [rsp + 0x90]
mov rsi, rax
mov rax, qword [rcx]
test edi, edi
js 0x2bbeeb4c8
mov edx, dword [rsp + 0x74]
xor r13d, r13d
lea rbp, [rsp + 0xb0]
test edx, edx
je 0x2bbeeb5b2
lea rax, [rsp + 0x88]
lea r15, [rsp + 0x190]
mov qword [rsp + 0x38], rax
mov rax, qword [rcx]
mov r8, rbp
mov edx, r13d
call qword [rax + 0x40]
mov edi, eax
test eax, eax
js 0x2bbeeb4bd
mov rcx, qword [rsp + 0xb0]
mov r8, qword [rsp + 0x38]
mov edx, 0x80058000
mov rax, qword [rcx]
call qword [rax + 0x28]
mov edi, eax
test eax, eax
jns 0x2bbeeb525
mov rcx, qword [rsp + 0xb0]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x90]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rax, qword [rsi]
lea rdx, [rax - 1]
mov qword [rsi], rdx
cmp rax, 1
jg 0x2bbeeb2aa
mov rax, qword [rbx]
mov rcx, rsi
xor esi, esi
call qword [rax + 0x100]
jmp 0x2bbeeb2ac
mov rcx, rsi
call qword [rdx + 0x100]
jmp 0x2bbeeb1ad
mov ebp, 1
jmp 0x2bbeeaebb
xor esi, esi
cmp edi, 0x800704c7
jne 0x2bbeeb2ac
xor edi, edi
jmp 0x2bbeeb2ac
mov rcx, qword [rsp + 0x88]
mov rdx, r15
add r13d, 1
call sym.ConvertExternalFilename
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, qword [rbx]
mov rdx, qword [rsp + 0x198]
mov rcx, qword [rsp + 0x190]
mov r9, qword [rax + 0x170]
mov qword [rsp + 0x40], r9
call qword [rax + 0x1d0]
mov r9, qword [rsp + 0x40]
mov rdx, rsi
mov rcx, qword [rsp + 0x2c0]
mov r8, rax
call r9
mov rax, qword [rbx]
mov rcx, r15
call qword [rax + 0x3d0]
mov rcx, qword [rsp + 0xb0]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x90]
cmp r13d, dword [rsp + 0x74]
jb 0x2bbeeb47f
mov rax, qword [rcx]
call qword [rax + 0x10]
cmp qword [rsp + 0x50], 0
je 0x2bbeeb2ac
cmp qword [r14 + 0x20], 0
je 0x2bbeeb2ac
mov rcx, qword [rsp + 0x78]
lea rdx, [rsp + 0xb0]
mov rax, qword [rcx]
call qword [rax + 0x30]
mov edi, eax
test eax, eax
js 0x2bbeeb2ac
mov eax, dword [rsp + 0xb0]
sub eax, 1
cmp eax, r12d
jae 0x2bbeeb2ac
mov rax, qword [rbx]
lea rbp, [rsp + 0x190]
mov rcx, rbp
call qword [rax + 0x3e0]
mov rax, qword [rbx]
mov r15, qword [rsp + 0x50]
mov r13, qword [rax + 0xb20]
mov eax, dword [rsp + 0xb0]
sub eax, 1
shl rax, 4
mov rcx, qword [r15 + rax]
call sym.wcslen
mov r8, rbp
mov rdx, rax
mov eax, dword [rsp + 0xb0]
sub eax, 1
shl rax, 4
mov rcx, qword [r15 + rax]
call r13
mov rax, qword [rbx]
mov rdx, qword [rsp + 0x198]
mov rcx, qword [rsp + 0x190]
call qword [rax + 0x1d0]
mov r10, qword [rbx]
mov rdx, qword [r14 + 0x20]
xor r8d, r8d
mov rcx, qword [rsp + 0x2c0]
mov dword [rsp + 0x20], 0x201
mov r9, rax
call qword [r10 + 0x630]
mov rax, qword [rbx]
mov rcx, rbp
call qword [rax + 0x3d0]
jmp 0x2bbeeb2ac
mov rax, qword [rbx]
lea rcx, str.Internal_error:_GetFileNameVista:_IFileDialog_API_not_available
call qword [rax + 0x20]
nop dword [rax]
mov rcx, qword [rsp + 0x88]
lea rbp, [rsp + 0x190]
mov rdx, rbp
call sym.ConvertExternalFilename
mov rax, qword [rbx]
mov rdx, qword [rsp + 0x198]
mov rcx, qword [rsp + 0x190]
call qword [rax + 0x1d0]
mov rcx, qword [rsp + 0x88]
mov rsi, rax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, qword [rbx]
mov rcx, rbp
call qword [rax + 0x3d0]
mov rcx, qword [rsp + 0xb0]
jmp 0x2bbeeb5af