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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x3d8
mov rax, qword [0x100165138]
xor rax, rsp
mov qword [rsp + 0x3c0], rax
mov r12, qword [rsp + 0x440]
mov rdi, qword [rsp + 0x448]
mov rbx, qword [rsp + 0x458]
mov r14, qword [rsp + 0x460]
mov r13, qword [rsp + 0x468]
xor r15d, r15d
mov rax, r8
mov esi, r15d
mov dword [rsp + 0x68], r15d
mov dword [rsp + 0x80], r9d
mov qword [rsp + 0x90], rdx
mov rbp, rcx
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x50], rcx
mov rcx, qword [0x1001653b8]
lea rdx, [0x1001653b8]
cmp rcx, rdx
je 0x10004ca3c
test byte [rcx + 0x1c], 1
je 0x10004ca3c
cmp byte [rcx + 0x19], 4
jb 0x10004ca3c
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cb8]
mov edx, 0x10e
call fcn.10001c854
mov rax, qword [rsp + 0x88]
or qword [rsp + 0xa0], 0xffffffffffffffff
mov qword [rsp + 0x98], rdi
mov edi, dword [rsp + 0x450]
mov byte [rsp + 0x48], r15b
mov qword [rsp + 0xd8], r15
mov qword [rsp + 0xd0], r15
mov qword [rsp + 0xb0], r15
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x68], r15d
mov byte [rsp + 0x4c], r15b
mov byte [rsp + 0x4b], r15b
mov byte [rsp + 0x49], r15b
mov dword [rsp + 0x60], r15d
mov dword [rsp + 0xa8], r15d
cmp r13, r15
jne 0x10004caa6
cmp edi, r15d
ja 0x10004caab
cmp r14, r15
jne 0x10004cab2
mov edi, 0x80004003
jmp 0x10004caf1
mov rdx, qword [rax]
lea rcx, [0x10000f0f8]
cmp rdx, qword [rcx]
jne 0x10004cad0
mov rdx, qword [rax + 8]
cmp rdx, qword [rcx + 8]
jne 0x10004cad0
mov eax, r15d
jmp 0x10004cad5
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, r15d
jne 0x10004cae1
mov edi, 0x80070057
jmp 0x10004caf1
cmp edi, 0x104
jae 0x10004cb05
mov dword [r14], r15d
mov edi, 0x8007007a
lea rcx, [rsp + 0x98]
call fcn.10001d648
mov eax, edi
jmp 0x10004d48c
lea r8, [rdi + rdi]
xor edx, edx
mov rcx, r13
mov r15, rdi
call sub.msvcrt.dll_memset
lea rcx, [0x1001665a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsp + 0x4a], 1
cmp qword [rbp + 0x10], rsi
jne 0x10004cb95
mov ebx, 0x8078000a
lea r14, [0x1001653b8]
mov rsi, qword [rsp + 0x70]
mov r12, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov rcx, qword [0x1001653b8]
cmp rcx, r14
je 0x10004d1e9
test byte [rcx + 0x1c], 1
je 0x10004d1e9
cmp byte [rcx + 0x19], 4
mov r13d, dword [rsp + 0x60]
jb 0x10004d1ee
mov rcx, qword [rcx + 0x10]
mov r9d, eax
lea r8, [0x100003cb8]
sub r9d, r13d
mov edx, 0x11a
call fcn.10001c878
jmp 0x10004d1ee
lea rcx, [0x1001665a0]
test rbx, rbx
mov byte [rsp + 0x4a], sil
cmove rbx, qword [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [rsp + 0xe0]
xor edx, edx
mov r8d, 0xd0
call sub.msvcrt.dll_memset
mov rdi, qword [rsp + 0x90]
mov rax, qword [rbx]
movdqu xmm5, xmmword [rdi]
lea r8, [rsp + 0xe0]
lea rdx, [rsp + 0xc0]
movdqu xmmword [rsp + 0xc0], xmm5
mov rcx, rbx
call qword [rax + 0x58]
mov ebx, eax
test eax, eax
js 0x10004cb33
mov r8d, dword [rsp + 0x120]
mov rbx, qword [rsp + 0x88]
xor ecx, ecx
mov byte [rsp + 0x48], 1
test r8d, r8d
je 0x10004cc58
mov eax, ecx
imul rax, rax, 0x78
add rax, qword [rsp + 0x128]
mov rdi, qword [rax]
cmp rdi, qword [rbx]
jne 0x10004cc3c
mov rdi, qword [rax + 8]
cmp rdi, qword [rbx + 8]
jne 0x10004cc3c
xor eax, eax
jmp 0x10004cc41
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10004ccf2
inc ecx
cmp ecx, r8d
jb 0x10004cc18
mov rdi, qword [rsp + 0x90]
mov rax, qword [0x1001653b8]
lea r14, [0x1001653b8]
cmp rax, r14
je 0x10004ccc0
test byte [rax + 0x1c], 1
je 0x10004ccc0
cmp byte [rax + 0x19], 2
jb 0x10004ccc0
lea rcx, [rsp + 0xc0]
mov rdx, rdi
mov esi, 3
call fcn.100044104
lea rcx, [rsp + 0x68]
mov rdx, rbx
mov rdi, qword [rax]
call fcn.100044104
mov rcx, qword [0x1001653b8]
mov rcx, qword [rcx + 0x10]
mov r9, qword [rax]
lea r8, [0x100003cb8]
mov edx, 0x10f
mov qword [rsp + 0x20], rdi
call fcn.10001df74
test sil, 2
je 0x10004ccd4
mov rcx, qword [rsp + 0x68]
and esi, 0xfffffffd
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test sil, 1
je 0x10004cce8
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ebx, 0x80780041
jmp 0x10004cd93
mov ebp, ecx
imul rbp, rbp, 0x78
add rbp, qword [rsp + 0x128]
je 0x10004cc50
cmp dword [rsp + 0x470], esi
je 0x10004cd26
lea rcx, [rsp + 0x98]
call fcn.10010b0c4
mov ebx, eax
test eax, eax
js 0x10004ce2f
and dword [rsp + 0xc0], esi
lea r8, [rsp + 0xc0]
lea rdx, [rsp + 0x98]
mov rcx, r12
call fcn.1001241e4
mov ebx, eax
test eax, eax
js 0x10004ce2f
mov edi, dword [rsp + 0xc0]
test edi, edi
jne 0x10004cd9d
mov rcx, qword [0x1001653b8]
lea r14, [0x1001653b8]
cmp rcx, r14
je 0x10004cd8e
test byte [rcx + 0x1c], 1
je 0x10004cd8e
cmp byte [rcx + 0x19], 2
jb 0x10004cd8e
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cb8]
mov edx, 0x110
call fcn.10001c854
mov ebx, 0x8078000c
mov rbp, qword [rsp + 0x50]
jmp 0x10004cb3a
cmp edi, 4
je 0x10004cde8
mov rcx, qword [0x1001653b8]
lea rbx, [0x1001653b8]
cmp rcx, rbx
je 0x10004cdd9
test byte [rcx + 0x1c], 1
je 0x10004cdd9
cmp byte [rcx + 0x19], 4
jb 0x10004cdd9
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cb8]
mov edx, VarUI4FromDisp
mov r9d, edi
call fcn.10001c878
lea rcx, [rsp + 0x98]
call fcn.1000594f0
jmp 0x10004cdef
lea rbx, [0x1001653b8]
mov ecx, edi
call fcn.1000a35bc
test al, 0x40
jne 0x10004ce39
mov rcx, qword [0x1001653b8]
cmp rcx, rbx
je 0x10004ce2a
test byte [rcx + 0x1c], 1
je 0x10004ce2a
cmp byte [rcx + 0x19], 2
jb 0x10004ce2a
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cb8]
mov edx, VarUI4FromDisp
mov r9d, edi
call fcn.10001c878
mov ebx, 0x8078004e
mov rbp, qword [rsp + 0x50]
jmp 0x10004cb33
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea r9, [rsp + 0x98]
lea r8, [rsp + 0xe0]
mov dword [rsp + 0x60], eax
lea rax, [rsp + 0xb0]
mov dl, 1
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xd0]
mov rcx, r12
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x20], rax
call fcn.100121994
xor r12d, r12d
cmp eax, r12d
mov ebx, eax
jl 0x10004ce2f
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0xb0]
lea r9, [rsp + 0x70]
xor r8d, r8d
call fcn.100120c14
cmp eax, r12d
mov ebx, eax
jl 0x10004ce2f
lea rcx, [rsp + 0x98]
xor edx, edx
call fcn.10010b1d8
cmp eax, r12d
mov ebx, eax
jl 0x10004ce2f
mov rsi, qword [rsp + 0x70]
xor r9d, r9d
mov r8b, 1
mov rcx, rsi
mov edx, edi
call fcn.10010c79c
cmp eax, r12d
mov ebx, eax
jge 0x10004cf38
mov rcx, qword [0x1001653b8]
lea rdi, [0x1001653b8]
cmp rcx, rdi
je 0x10004cf27
test byte [rcx + 0x1c], 1
je 0x10004cf27
cmp byte [rcx + 0x19], 2
jb 0x10004cf27
mov edx, VarUI4FromDisp
mov r9, rsi
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cb8]
mov dword [rsp + 0x20], eax
call fcn.10001ddb0
mov rbp, qword [rsp + 0x50]
lea r14, [0x1001653b8]
jmp 0x10004cb3f
lea rcx, [rsp + 0x98]
call fcn.10010b368
mov rax, qword [rsp + 0x98]
cmp rax, 0xffffffffffffffff
jne 0x10004cf68
or rax, rax
cmp qword [rsp + 0xa0], 0xffffffffffffffff
cmovne rax, qword [rsp + 0xa0]
mov r8d, dword [rbp + 0x40]
lea rcx, [rsp + 0x68]
lea r9, [rsp + 0x1b0]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov dl, 1
mov rcx, rsi
mov dword [rsp + 0x20], 0x104
call fcn.1000d29c4
mov ebx, eax
cmp eax, r12d
je 0x10004d03a
mov rcx, qword [0x1001653b8]
mov edi, dword [rsp + 0x68]
lea r14, [0x1001653b8]
cmp rcx, r14
je 0x10004cfe3
test byte [rcx + 0x1c], 1
je 0x10004cfe3
cmp byte [rcx + 0x19], 2
jb 0x10004cfe3
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cb8]
mov edx, VarUI4FromDisp
mov r9, rsi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], eax
call fcn.10001e4b0
lea r8, [rsp + 0x68]
mov edx, edi
mov ecx, ebx
mov dword [rsp + 0x68], r12d
call fcn.10010de1c
mov ebx, eax
mov rcx, qword [0x1001653b8]
cmp rcx, r14
je 0x10004d030
test byte [rcx + 0x1c], 1
je 0x10004d030
cmp byte [rcx + 0x19], 2
jb 0x10004d030
mov eax, dword [rsp + 0x68]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cb8]
mov edx, reloc.OLEAUT32.dll_VarUI4FromDisp
mov r9d, ebx
mov dword [rsp + 0x20], eax
call fcn.10001d914
mov rbp, qword [rsp + 0x50]
jmp 0x10004cb3f
mov byte [rsp + 0x4b], 1
mov rcx, qword [0x1001653b8]
lea rdi, [0x1001653b8]
cmp rcx, rdi
je 0x10004d076
test byte [rcx + 0x1c], 1
je 0x10004d076
cmp byte [rcx + 0x19], 4
jb 0x10004d076
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cb8]
mov edx, 0x116
mov r9, rsi
call fcn.10001db08
lea rcx, [rsp + 0x1b0]
mov dl, 1
call fcn.100053b54
cmp eax, r12d
mov ebx, eax
jge 0x10004d0c2
mov rcx, qword [0x1001653b8]
cmp rcx, rdi
je 0x10004cf27
test byte [rcx + 0x1c], 1
je 0x10004cf27
cmp byte [rcx + 0x19], 2
jb 0x10004cf27
mov edx, 0x117
lea r9, [rsp + 0x1b0]
jmp 0x10004cf13
mov rcx, qword [0x1001653b8]
cmp rcx, rdi
je 0x10004d0f7
test byte [rcx + 0x1c], 1
je 0x10004d0f7
cmp byte [rcx + 0x19], 5
jb 0x10004d0f7
mov rcx, qword [rcx + 0x10]
lea r9, [rsp + 0x1b0]
lea r8, [0x100003cb8]
mov edx, 0x118
call fcn.10001db08
cmp dword [rsp + 0x80], r12d
je 0x10004d169
mov rbp, qword [rsp + 0x50]
cmp dword [rbp + 0x24], r12d
jne 0x10004d121
call fcn.100133484
cmp eax, r12d
mov ebx, eax
jl 0x10004cf2c
mov byte [rsp + 0x4c], 1
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x1b0]
call fcn.100133bd8
cmp eax, r12d
mov r12, qword [rsp + 0x40]
mov ebx, eax
jl 0x10004d15d
mov r8, r12
mov rdx, r15
mov rcx, r13
mov byte [rsp + 0x49], 1
call fcn.1000c23ac
mov ebx, eax
test eax, eax
js 0x10004d15d
inc dword [rbp + 0x24]
jmp 0x10004d18d
lea r14, [0x1001653b8]
jmp 0x10004cb44
lea r8, [rsp + 0x1b0]
mov rdx, r15
mov rcx, r13
call fcn.1000c23ac
mov rbp, qword [rsp + 0x50]
cmp eax, r12d
mov r12, qword [rsp + 0x40]
mov ebx, eax
jl 0x10004d15d
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r13
repne scasw ax, word [rdi]
not rcx
and ecx, ecx
mov dword [r14], ecx
mov rcx, qword [0x1001653b8]
lea r14, [0x1001653b8]
cmp rcx, r14
je 0x10004cb44
test byte [rcx + 0x1c], 1
je 0x10004cb44
cmp byte [rcx + 0x19], 4
jb 0x10004cb44
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cb8]
mov edx, 0x119
mov r9, r13
call fcn.10001db08
jmp 0x10004cb44
mov r13d, dword [rsp + 0x60]
mov rax, qword [rsp + 0x88]
mov r8d, dword [rsp + 0x80]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
sub edi, r13d
mov r9d, ebx
movdqu xmm0, xmmword [rax]
movdqu xmmword [rsp + 0x70], xmm0
mov rax, qword [rsp + 0x90]
mov dword [rsp + 0x20], edi
movdqu xmm1, xmmword [rax]
movdqu xmmword [rsp + 0x50], xmm1
call fcn.1000ebdbc
xor edi, edi
cmp ebx, edi
jge 0x10004d358
cmp byte [rsp + 0x4c], dil
je 0x10004d27d
call fcn.100133734
cmp eax, edi
jge 0x10004d27d
mov rcx, qword [0x1001653b8]
cmp rcx, r14
je 0x10004d27d
test byte [rcx + 0x1c], 1
je 0x10004d27d
cmp byte [rcx + 0x19], 2
jb 0x10004d27d
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cb8]
mov edx, 0x11b
mov r9d, eax
call fcn.10001c878
cmp byte [rsp + 0x49], dil
je 0x10004d2c5
lea rcx, [rsp + 0x1b0]
call fcn.10011cb2c
cmp eax, edi
jge 0x10004d2c5
mov rcx, qword [0x1001653b8]
cmp rcx, r14
je 0x10004d2c5
test byte [rcx + 0x1c], 1
je 0x10004d2c5
cmp byte [rcx + 0x19], 2
jb 0x10004d2c5
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cb8]
mov edx, 0x11c
mov r9d, eax
call fcn.10001c878
cmp byte [rsp + 0x4b], dil
je 0x10004d358
mov rax, qword [rbp]
lea rdx, [rsp + 0x1b0]
mov rcx, rbp
call qword [rax + 0x168]
cmp eax, edi
jge 0x10004d322
mov rcx, qword [0x1001653b8]
lea rbp, [0x1001653b8]
cmp rcx, rbp
je 0x10004d35f
test byte [rcx + 0x1c], 1
je 0x10004d35f
cmp byte [rcx + 0x19], 2
jb 0x10004d35f
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cb8]
mov edx, 0x11d
mov r9d, eax
call fcn.10001c878
jmp 0x10004d35f
mov rcx, qword [0x1001653b8]
lea rbp, [0x1001653b8]
cmp rcx, rbp
je 0x10004d35f
test byte [rcx + 0x1c], 1
je 0x10004d35f
cmp byte [rcx + 0x19], 5
jb 0x10004d35f
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cb8]
mov edx, 0x11e
call fcn.10001c854
jmp 0x10004d35f
lea rbp, [0x1001653b8]
lea rcx, [rsp + 0x98]
call fcn.10010b368
mov rcx, qword [rsp + 0xd8]
cmp rcx, rdi
je 0x10004d37f
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0xd0]
cmp rcx, rdi
je 0x10004d392
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, qword [rsp + 0xb0]
cmp rax, rdi
je 0x10004d3a8
mov rcx, rax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
cmp rsi, rdi
je 0x10004d3b6
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
cmp r12, rdi
je 0x10004d3c4
mov rcx, r12
call qword [sym.imp.ole32.dll_CoTaskMemFree]
cmp byte [rsp + 0x48], dil
je 0x10004d3d8
lea rcx, [rsp + 0xe0]
call fcn.1000a94fc
mov rcx, qword [0x1001653b8]
cmp rcx, rbp
je 0x10004d43c
test byte [rcx + 0x1c], 1
je 0x10004d40f
cmp byte [rcx + 0x19], 5
jb 0x10004d40f
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cb8]
mov edx, 0x11f
mov r9d, ebx
call fcn.10001c878
mov rcx, qword [0x1001653b8]
cmp rcx, rbp
je 0x10004d43c
test byte [rcx + 0x1c], 1
je 0x10004d43c
cmp byte [rcx + 0x19], 4
jb 0x10004d43c
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cb8]
mov edx, 0x120
call fcn.10001c854
mov rcx, qword [0x1001653b8]
cmp ebx, edi
jge 0x10004d469
cmp rcx, rbp
je 0x10004d469
test byte [rcx + 0x1c], 1
je 0x10004d469
cmp byte [rcx + 0x19], 2
jb 0x10004d469
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cb8]
mov edx, 0x121
mov r9d, ebx
call fcn.10001c878
lea rcx, [rsp + 0x98]
call fcn.10001d648
cmp byte [rsp + 0x4a], dil
je 0x10004d48a
lea rcx, [0x1001665a0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
mov rcx, qword [rsp + 0x3c0]
xor rcx, rsp
call fcn.10014e600
add rsp, 0x3d8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret