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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
mov eax, 0x1140
call fcn.1801298f0
sub rsp, rax
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x1180], rbx
mov rax, qword [0x1801aef28]
xor rax, rsp
mov qword [rsp + 0x1130], rax
mov esi, edx
mov rbp, rcx
xor r13d, r13d
mov ebx, r13d
test rcx, rcx
je 0x18005f83a
xor ecx, ecx
call fcn.18005bea0
test eax, eax
je 0x18005f83a
lea r8d, [r13 + 1]
lea rdx, [0x1801d1b38]
lea rcx, [rsp + 0x78]
call fcn.180087860
nop
lea rcx, [0x1801d1ad8]
call fcn.18005b840
mov edi, eax
lea rcx, [rsp + 0x78]
call fcn.1800878e0
test edi, edi
je 0x18005f83a
cmp dword [0x1801cb950], r13d
jbe 0x18005f15d
call fcn.180014ef0
mov rdi, rax
cmp dword [0x1801df0a0], r13d
je 0x18005f11d
mov qword [rsp + 0x20], rax
lea r9, str.CBaseFileCtrl::FileCtrl_hwnd__08x_
lea r8, str.FileCtrl
or edx, 0xffffffff
lea rcx, [0x1801de7b8]
call fcn.18008da50
test rdi, rdi
je 0x18005f15d
mov rcx, rdi
call fcn.180073b10
test eax, eax
je 0x18005f15d
cmp dword [0x1801df0a0], 0
je 0x18005f83a
lea r9, str.CBaseFileCtrl::FileCtrl_InOpenSaveDlg
lea r8, str.FileCtrl
or edx, 0xffffffff
lea rcx, [0x1801de7b8]
call fcn.18008da50
jmp 0x18005f83a
mov word [rsp + 0xb00], r13w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0xb02]
call fcn.1800a1250
mov r8d, 0x103
mov rdx, rbp
lea rcx, [rsp + 0xb00]
call fcn.1800a11c4
mov word [rsp + 0xf20], r13w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0xf22]
call fcn.1800a1250
lea rdx, [0x18013a3f8]
lea rcx, [rsp + 0xb00]
call fcn.1800a07ec
test rax, rax
je 0x18005f202
mov r8d, 0x103
lea rdx, [rsp + 0xf20]
lea rcx, [rsp + 0xb00]
call fcn.180076360
test eax, eax
je 0x18005f202
mov r8d, 0x103
lea rdx, [rsp + 0xf20]
lea rcx, [rsp + 0xb00]
call fcn.1800a11c4
cmp dword [0x1801df0a0], 0
je 0x18005f242
lea rax, [rsp + 0xf20]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xb00]
mov qword [rsp + 0x20], rax
lea r9, str.CBaseFileCtrl::FileCtrl_File__s___s_
lea r8, str.FileCtrl
or edx, 0xffffffff
lea rcx, [0x1801de7b8]
call fcn.18008da50
mov word [rsp + 0x90], r13w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x92]
call fcn.1800a1250
xor edx, edx
mov r8d, 0x650
lea rcx, [rsp + 0x298]
call fcn.1800a1250
lea r8, [rsp + 0x90]
mov edx, esi
lea rcx, [rsp + 0xb00]
call fcn.18005cde0
test eax, eax
je 0x18005f83a
cmp dword [0x1801df0a0], 0
je 0x18005f336
mov eax, dword [rsp + 0x8d0]
mov dword [rsp + 0x68], eax
mov eax, dword [rsp + 0x8c8]
mov dword [rsp + 0x60], eax
lea rax, [rsp + 0x6c0]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x4b8]
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x4b4]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x4b0]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x4a8]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x4a0]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x298]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
lea r9, str.CBaseFileCtrl::FileCtrl__Info__s___s___d___08x___d___d___s___s___08x___08x_
lea r8, str.FileCtrl
or edx, 0xffffffff
lea rcx, [0x1801de7b8]
call fcn.18008da50
lea rcx, [rsp + 0x90]
call fcn.18005b620
test eax, eax
jne 0x18005f3ba
call fcn.180014f90
mov edi, eax
mov ecx, dword [0x1801df0a0]
test ecx, ecx
je 0x18005f37f
mov dword [rsp + 0x20], eax
lea r9, str.CBaseFileCtrl::FileCtrl_UIThread__08x_
lea r8, str.FileCtrl
or edx, 0xffffffff
lea rcx, [0x1801de7b8]
call fcn.18008da50
mov ecx, dword [0x1801df0a0]
cmp esi, dword [rsp + 0x8c8]
je 0x18005f390
test edi, edi
je 0x18005f3ba
cmp esi, edi
jne 0x18005f3ba
test ecx, ecx
je 0x18005f83a
lea r9, str.CBaseFileCtrl::FileCtrl_UIThread_Filter
lea r8, str.FileCtrl
or edx, 0xffffffff
lea rcx, [0x1801de7b8]
call fcn.18008da50
jmp 0x18005f83a
cmp dword [rsp + 0x8d0], 0
je 0x18005f409
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x8d0], eax
mov ebx, 1
cmp dword [0x1801df0a0], 0
je 0x18005f83a
mov dword [rsp + 0x20], eax
lea r9, str.CBaseFileCtrl::FileCtrl_CtrlInCache__08x_
lea r8, str.FileCtrl
or edx, 0xffffffff
lea rcx, [0x1801de7b8]
call fcn.18008da50
jmp 0x18005f83a
mov word [rsp + 0x8f0], r13w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x8f2]
call fcn.1800a1250
xor edx, edx
mov qword [rsp + 0xaf8], rdx
lea rdx, [rsp + 0x8f0]
lea rcx, [rsp + 0xb00]
call fcn.18005ecd0
mov r12d, eax
xor edx, edx
mov r8d, 0x858
lea rcx, [rsp + 0x90]
call fcn.1800a1250
lea r8, [rsp + 0x90]
mov edx, esi
lea rcx, [rsp + 0xb00]
call fcn.18005cde0
test eax, eax
je 0x18005f820
cmp dword [rsp + 0x8d0], 0
je 0x18005f4cc
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x8d0], eax
mov ebx, 1
cmp dword [0x1801df0a0], 0
je 0x18005f83a
mov dword [rsp + 0x20], eax
lea r9, str.CBaseFileCtrl::FileCtrl_CtrlInCache__08x_
lea r8, str.FileCtrl
or edx, 0xffffffff
lea rcx, [0x1801de7b8]
call fcn.18008da50
jmp 0x18005f83a
mov dword [rsp + 0x8cc], esi
cmp qword [rsp + 0x4a8], 0
jne 0x18005f4eb
call fcn.180014ef0
mov qword [rsp + 0x4a8], rax
test byte [rsp + 0x8e0], 4
je 0x18005f5a0
call fcn.18000c8d0
mov rcx, rax
mov dword [rsp + 0x38], r13d
lea rax, [rsp + 0x4b4]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x4a8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x104
lea r9, [rsp + 0x6c0]
mov r8d, 0x104
lea rdx, [rsp + 0x4b8]
call fcn.18000cb40
mov edi, eax
cmp dword [0x1801df0a0], 0
je 0x18005f594
mov ecx, dword [rsp + 0x4b4]
mov dword [rsp + 0x38], ecx
lea rax, [rsp + 0x6c0]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x4b8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
lea r9, str.CBaseFileCtrl::FileCtrl_GetChatInfo__d___s___s___d_
lea r8, str.FileCtrl
or edx, 0xffffffff
lea rcx, [0x1801de7b8]
call fcn.18008da50
test edi, edi
je 0x18005f5a0
and dword [rsp + 0x8e0], 0xfffffffb
mov word [rsp + 0xd10], r13w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0xd12]
call fcn.1800a1250
mov r8d, 0x103
lea rdx, [rsp + 0xb00]
lea rcx, [rsp + 0xd10]
call fcn.1800a11c4
mov ebp, 1
mov eax, dword [rsp + 0x8e0]
test bpl, al
je 0x18005f744
mov ebp, r13d
test al, 8
jne 0x18005f656
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x38], 1
lea rax, [rsp + 0x6c0]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x4b8]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x4b4]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x4b0]
mov r8, qword [rsp + 0x4a8]
mov edx, dword [rsp + 0x4a0]
lea rcx, [rsp + 0x90]
call fcn.18005eec0
or dword [rsp + 0x8e0], 8
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0xb00]
repne scasw ax, word [rdi]
not rcx
lea rsi, [rcx - 1]
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x298]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rbx, rcx
test ecx, ecx
je 0x18005f75f
cmp esi, ecx
jbe 0x18005f75f
mov r8, rcx
lea rdx, [rsp + 0x298]
lea rcx, [rsp + 0xb00]
call fcn.1800a39f8
test eax, eax
jne 0x18005f75f
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x90]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov eax, ebx
mov edx, esi
sub rdx, rax
add rcx, rdx
cmp rcx, 0x103
ja 0x18005f75f
mov r8d, 0x103
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0xd10]
call fcn.1800a11c4
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x298]
repne scasw ax, word [rdi]
not rcx
lea rdx, [rsp + rcx*2 + 0xafe]
lea rdi, [rsp + 0xd10]
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
xor ecx, ecx
nop dword [rax + rax]
movzx eax, word [rdx + rcx]
mov word [rdi + rcx - 2], ax
add rcx, 2
test ax, ax
jne 0x18005f730
jmp 0x18005f75f
mov r8d, 0x103
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0xd10]
call fcn.1800a11c4
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x38], ebp
lea rax, [rsp + 0x6c0]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x4b8]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x4b4]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x4b0]
mov r8, qword [rsp + 0x4a8]
mov edx, dword [rsp + 0x4a0]
lea rcx, [rsp + 0xd10]
call fcn.18005eec0
mov ebx, eax
mov edi, r13d
test eax, eax
je 0x18005f7fc
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x8d0], eax
mov ecx, dword [0x1801c958c]
cmp ecx, 0x21
jne 0x18005f7ea
mov ecx, dword [rsp + 0x8e0]
test cl, 1
je 0x18005f801
or ecx, 2
mov dword [rsp + 0x8e0], ecx
jmp 0x18005f801
cmp ecx, 0x10000000
jne 0x18005f801
or dword [rsp + 0x8e0], 2
jmp 0x18005f801
mov edi, 1
movzx eax, byte [rsp + 0x8e0]
and al, 1
cmp al, 1
cmove edi, r13d
mov edx, edi
lea rcx, [rsp + 0x90]
call fcn.18005e820
test r12d, r12d
jne 0x18005f83a
lea rdx, [rsp + 0x8f0]
lea rcx, [rsp + 0xb00]
call fcn.18005d980
mov eax, ebx
mov rcx, qword [rsp + 0x1130]
xor rcx, rsp
call fcn.1800a1220
mov rbx, qword [rsp + 0x1180]
add rsp, 0x1140
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret