Function at 0x10004c934
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 0x10004c9ec
test byte [rcx + 0x1c], 1
je 0x10004c9ec
cmp byte [rcx + 0x19], 4
jb 0x10004c9ec
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cf8]
mov edx, 0x10e
call fcn.10001c7b8
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 0x10004ca56
cmp edi, r15d
ja 0x10004ca5b
cmp r14, r15
jne 0x10004ca62
mov edi, 0x80004003
jmp 0x10004caa1
mov rdx, qword [rax]
lea rcx, [0x100001fe0]
cmp rdx, qword [rcx]
jne 0x10004ca80
mov rdx, qword [rax + 8]
cmp rdx, qword [rcx + 8]
jne 0x10004ca80
mov eax, r15d
jmp 0x10004ca85
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, r15d
jne 0x10004ca91
mov edi, 0x80070057
jmp 0x10004caa1
cmp edi, 0x104
jae 0x10004cab5
mov dword [r14], r15d
mov edi, 0x8007007a
lea rcx, [rsp + 0x98]
call fcn.10001d5ac
mov eax, edi
jmp 0x10004d43c
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 0x10004cb45
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 0x10004d199
test byte [rcx + 0x1c], 1
je 0x10004d199
cmp byte [rcx + 0x19], 4
mov r13d, dword [rsp + 0x60]
jb 0x10004d19e
mov rcx, qword [rcx + 0x10]
mov r9d, eax
lea r8, [0x100003cf8]
sub r9d, r13d
mov edx, 0x11a
call fcn.10001c7dc
jmp 0x10004d19e
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 0x10004cae3
mov r8d, dword [rsp + 0x120]
mov rbx, qword [rsp + 0x88]
xor ecx, ecx
mov byte [rsp + 0x48], 1
test r8d, r8d
je 0x10004cc08
mov eax, ecx
imul rax, rax, 0x78
add rax, qword [rsp + 0x128]
mov rdi, qword [rax]
cmp rdi, qword [rbx]
jne 0x10004cbec
mov rdi, qword [rax + 8]
cmp rdi, qword [rbx + 8]
jne 0x10004cbec
xor eax, eax
jmp 0x10004cbf1
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10004cca2
inc ecx
cmp ecx, r8d
jb 0x10004cbc8
mov rdi, qword [rsp + 0x90]
mov rax, qword [0x1001653b8]
lea r14, [0x1001653b8]
cmp rax, r14
je 0x10004cc70
test byte [rax + 0x1c], 1
je 0x10004cc70
cmp byte [rax + 0x19], 2
jb 0x10004cc70
lea rcx, [rsp + 0xc0]
mov rdx, rdi
mov esi, 3
call fcn.1000440b4
lea rcx, [rsp + 0x68]
mov rdx, rbx
mov rdi, qword [rax]
call fcn.1000440b4
mov rcx, qword [0x1001653b8]
mov rcx, qword [rcx + 0x10]
mov r9, qword [rax]
lea r8, [0x100003cf8]
mov edx, 0x10f
mov qword [rsp + 0x20], rdi
call fcn.10001df38
test sil, 2
je 0x10004cc84
mov rcx, qword [rsp + 0x68]
and esi, 0xfffffffd
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test sil, 1
je 0x10004cc98
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ebx, 0x80780041
jmp 0x10004cd43
mov ebp, ecx
imul rbp, rbp, 0x78
add rbp, qword [rsp + 0x128]
je 0x10004cc00
cmp dword [rsp + 0x470], esi
je 0x10004ccd6
lea rcx, [rsp + 0x98]
call fcn.10010ac34
mov ebx, eax
test eax, eax
js 0x10004cddf
and dword [rsp + 0xc0], esi
lea r8, [rsp + 0xc0]
lea rdx, [rsp + 0x98]
mov rcx, r12
call fcn.100124140
mov ebx, eax
test eax, eax
js 0x10004cddf
mov edi, dword [rsp + 0xc0]
test edi, edi
jne 0x10004cd4d
mov rcx, qword [0x1001653b8]
lea r14, [0x1001653b8]
cmp rcx, r14
je 0x10004cd3e
test byte [rcx + 0x1c], 1
je 0x10004cd3e
cmp byte [rcx + 0x19], 2
jb 0x10004cd3e
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cf8]
mov edx, 0x110
call fcn.10001c7b8
mov ebx, 0x8078000c
mov rbp, qword [rsp + 0x50]
jmp 0x10004caea
cmp edi, 4
je 0x10004cd98
mov rcx, qword [0x1001653b8]
lea rbx, [0x1001653b8]
cmp rcx, rbx
je 0x10004cd89
test byte [rcx + 0x1c], 1
je 0x10004cd89
cmp byte [rcx + 0x19], 4
jb 0x10004cd89
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cf8]
mov edx, 0x111
mov r9d, edi
call fcn.10001c7dc
lea rcx, [rsp + 0x98]
call fcn.1000591a8
jmp 0x10004cd9f
lea rbx, [0x1001653b8]
mov ecx, edi
call fcn.1000a31e8
test al, 0x40
jne 0x10004cde9
mov rcx, qword [0x1001653b8]
cmp rcx, rbx
je 0x10004cdda
test byte [rcx + 0x1c], 1
je 0x10004cdda
cmp byte [rcx + 0x19], 2
jb 0x10004cdda
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cf8]
mov edx, 0x112
mov r9d, edi
call fcn.10001c7dc
mov ebx, 0x8078004e
mov rbp, qword [rsp + 0x50]
jmp 0x10004cae3
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.1001218f0
xor r12d, r12d
cmp eax, r12d
mov ebx, eax
jl 0x10004cddf
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0xb0]
lea r9, [rsp + 0x70]
xor r8d, r8d
call fcn.100120b70
cmp eax, r12d
mov ebx, eax
jl 0x10004cddf
lea rcx, [rsp + 0x98]
xor edx, edx
call fcn.10010ad48
cmp eax, r12d
mov ebx, eax
jl 0x10004cddf
mov rsi, qword [rsp + 0x70]
xor r9d, r9d
mov r8b, 1
mov rcx, rsi
mov edx, edi
call fcn.10010c30c
cmp eax, r12d
mov ebx, eax
jge 0x10004cee8
mov rcx, qword [0x1001653b8]
lea rdi, [0x1001653b8]
cmp rcx, rdi
je 0x10004ced7
test byte [rcx + 0x1c], 1
je 0x10004ced7
cmp byte [rcx + 0x19], 2
jb 0x10004ced7
mov edx, 0x113
mov r9, rsi
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cf8]
mov dword [rsp + 0x20], eax
call fcn.10001daa4
mov rbp, qword [rsp + 0x50]
lea r14, [0x1001653b8]
jmp 0x10004caef
lea rcx, [rsp + 0x98]
call fcn.10010aed8
mov rax, qword [rsp + 0x98]
cmp rax, 0xffffffffffffffff
jne 0x10004cf18
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.1000d2870
mov ebx, eax
cmp eax, r12d
je 0x10004cfea
mov rcx, qword [0x1001653b8]
mov edi, dword [rsp + 0x68]
lea r14, [0x1001653b8]
cmp rcx, r14
je 0x10004cf93
test byte [rcx + 0x1c], 1
je 0x10004cf93
cmp byte [rcx + 0x19], 2
jb 0x10004cf93
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cf8]
mov edx, 0x114
mov r9, rsi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], eax
call fcn.10001dd64
lea r8, [rsp + 0x68]
mov edx, edi
mov ecx, ebx
mov dword [rsp + 0x68], r12d
call fcn.10010d970
mov ebx, eax
mov rcx, qword [0x1001653b8]
cmp rcx, r14
je 0x10004cfe0
test byte [rcx + 0x1c], 1
je 0x10004cfe0
cmp byte [rcx + 0x19], 2
jb 0x10004cfe0
mov eax, dword [rsp + 0x68]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cf8]
mov edx, 0x115
mov r9d, ebx
mov dword [rsp + 0x20], eax
call fcn.10001e8b4
mov rbp, qword [rsp + 0x50]
jmp 0x10004caef
mov byte [rsp + 0x4b], 1
mov rcx, qword [0x1001653b8]
lea rdi, [0x1001653b8]
cmp rcx, rdi
je 0x10004d026
test byte [rcx + 0x1c], 1
je 0x10004d026
cmp byte [rcx + 0x19], 4
jb 0x10004d026
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cf8]
mov edx, 0x116
mov r9, rsi
call fcn.10001da24
lea rcx, [rsp + 0x1b0]
mov dl, 1
call fcn.100053b04
cmp eax, r12d
mov ebx, eax
jge 0x10004d072
mov rcx, qword [0x1001653b8]
cmp rcx, rdi
je 0x10004ced7
test byte [rcx + 0x1c], 1
je 0x10004ced7
cmp byte [rcx + 0x19], 2
jb 0x10004ced7
mov edx, 0x117
lea r9, [rsp + 0x1b0]
jmp 0x10004cec3
mov rcx, qword [0x1001653b8]
cmp rcx, rdi
je 0x10004d0a7
test byte [rcx + 0x1c], 1
je 0x10004d0a7
cmp byte [rcx + 0x19], 5
jb 0x10004d0a7
mov rcx, qword [rcx + 0x10]
lea r9, [rsp + 0x1b0]
lea r8, [0x100003cf8]
mov edx, 0x118
call fcn.10001da24
cmp dword [rsp + 0x80], r12d
je 0x10004d119
mov rbp, qword [rsp + 0x50]
cmp dword [rbp + 0x24], r12d
jne 0x10004d0d1
call fcn.100133438
cmp eax, r12d
mov ebx, eax
jl 0x10004cedc
mov byte [rsp + 0x4c], 1
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x1b0]
call fcn.100133b8c
cmp eax, r12d
mov r12, qword [rsp + 0x40]
mov ebx, eax
jl 0x10004d10d
mov r8, r12
mov rdx, r15
mov rcx, r13
mov byte [rsp + 0x49], 1
call fcn.100043e4c
mov ebx, eax
test eax, eax
js 0x10004d10d
inc dword [rbp + 0x24]
jmp 0x10004d13d
lea r14, [0x1001653b8]
jmp 0x10004caf4
lea r8, [rsp + 0x1b0]
mov rdx, r15
mov rcx, r13
call fcn.100043e4c
mov rbp, qword [rsp + 0x50]
cmp eax, r12d
mov r12, qword [rsp + 0x40]
mov ebx, eax
jl 0x10004d10d
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 0x10004caf4
test byte [rcx + 0x1c], 1
je 0x10004caf4
cmp byte [rcx + 0x19], 4
jb 0x10004caf4
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cf8]
mov edx, 0x119
mov r9, r13
call fcn.10001da24
jmp 0x10004caf4
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.1000eb970
xor edi, edi
cmp ebx, edi
jge 0x10004d308
cmp byte [rsp + 0x4c], dil
je 0x10004d22d
call fcn.1001336e8
cmp eax, edi
jge 0x10004d22d
mov rcx, qword [0x1001653b8]
cmp rcx, r14
je 0x10004d22d
test byte [rcx + 0x1c], 1
je 0x10004d22d
cmp byte [rcx + 0x19], 2
jb 0x10004d22d
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cf8]
mov edx, 0x11b
mov r9d, eax
call fcn.10001c7dc
cmp byte [rsp + 0x49], dil
je 0x10004d275
lea rcx, [rsp + 0x1b0]
call fcn.10011ca88
cmp eax, edi
jge 0x10004d275
mov rcx, qword [0x1001653b8]
cmp rcx, r14
je 0x10004d275
test byte [rcx + 0x1c], 1
je 0x10004d275
cmp byte [rcx + 0x19], 2
jb 0x10004d275
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cf8]
mov edx, 0x11c
mov r9d, eax
call fcn.10001c7dc
cmp byte [rsp + 0x4b], dil
je 0x10004d308
mov rax, qword [rbp]
lea rdx, [rsp + 0x1b0]
mov rcx, rbp
call qword [rax + 0x168]
cmp eax, edi
jge 0x10004d2d2
mov rcx, qword [0x1001653b8]
lea rbp, [0x1001653b8]
cmp rcx, rbp
je 0x10004d30f
test byte [rcx + 0x1c], 1
je 0x10004d30f
cmp byte [rcx + 0x19], 2
jb 0x10004d30f
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cf8]
mov edx, 0x11d
mov r9d, eax
call fcn.10001c7dc
jmp 0x10004d30f
mov rcx, qword [0x1001653b8]
lea rbp, [0x1001653b8]
cmp rcx, rbp
je 0x10004d30f
test byte [rcx + 0x1c], 1
je 0x10004d30f
cmp byte [rcx + 0x19], 5
jb 0x10004d30f
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cf8]
mov edx, 0x11e
call fcn.10001c7b8
jmp 0x10004d30f
lea rbp, [0x1001653b8]
lea rcx, [rsp + 0x98]
call fcn.10010aed8
mov rcx, qword [rsp + 0xd8]
cmp rcx, rdi
je 0x10004d32f
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0xd0]
cmp rcx, rdi
je 0x10004d342
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, qword [rsp + 0xb0]
cmp rax, rdi
je 0x10004d358
mov rcx, rax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
cmp rsi, rdi
je 0x10004d366
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
cmp r12, rdi
je 0x10004d374
mov rcx, r12
call qword [sym.imp.ole32.dll_CoTaskMemFree]
cmp byte [rsp + 0x48], dil
je 0x10004d388
lea rcx, [rsp + 0xe0]
call fcn.1000a9128
mov rcx, qword [0x1001653b8]
cmp rcx, rbp
je 0x10004d3ec
test byte [rcx + 0x1c], 1
je 0x10004d3bf
cmp byte [rcx + 0x19], 5
jb 0x10004d3bf
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cf8]
mov edx, 0x11f
mov r9d, ebx
call fcn.10001c7dc
mov rcx, qword [0x1001653b8]
cmp rcx, rbp
je 0x10004d3ec
test byte [rcx + 0x1c], 1
je 0x10004d3ec
cmp byte [rcx + 0x19], 4
jb 0x10004d3ec
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cf8]
mov edx, 0x120
call fcn.10001c7b8
mov rcx, qword [0x1001653b8]
cmp ebx, edi
jge 0x10004d419
cmp rcx, rbp
je 0x10004d419
test byte [rcx + 0x1c], 1
je 0x10004d419
cmp byte [rcx + 0x19], 2
jb 0x10004d419
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cf8]
mov edx, 0x121
mov r9d, ebx
call fcn.10001c7dc
lea rcx, [rsp + 0x98]
call fcn.10001d5ac
cmp byte [rsp + 0x4a], dil
je 0x10004d43a
lea rcx, [0x1001665a0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
mov rcx, qword [rsp + 0x3c0]
xor rcx, rsp
call fcn.10014e480
add rsp, 0x3d8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret