Function at 0x4492d0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14c
mov eax, dword [0x519008]
xor eax, esp
mov dword [esp + 0x148], eax
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, ecx
mov dword [esp + 0x2c], eax
xor eax, eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], esi
mov byte [edi + 0x118], 0
mov word [edi + 0x11a], ax
cmp byte [edi + 0x104], al
je 0x449618
cmp byte [edi + 0x106], al
je 0x449618
mov al, byte [ebp + 0xc]
xor ebx, ebx
mov byte [esp + 0x50], al
test edx, edx
je 0x449347
cmp byte [edx], bl
je 0x449347
lea ecx, [ecx]
inc ebx
cmp byte [edx + ebx], 0
jne 0x449340
movzx eax, bl
push eax
push edx
lea eax, [esp + 0x5a]
mov byte [esp + 0x59], bl
push eax
call fcn.00407040
movzx eax, bl
add esp, 0xc
add ax, 2
movzx eax, ax
mov dword [esp + 0x10], eax
movzx ecx, ax
inc eax
mov dword [esp + 0x10], eax
cmp ecx, 0x100
jae 0x44970f
mov ebx, esi
mov byte [esp + ecx + 0x50], 0
lea ecx, [ebx + 1]
lea esp, [esp]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x449390
mov si, word [esp + 0x10]
sub ebx, ecx
movzx eax, bl
push eax
push dword [esp + 0x28]
movzx ecx, si
lea eax, [esp + 0x58]
add eax, ecx
push eax
call fcn.00407040
movzx eax, bl
add esp, 0xc
add si, ax
movzx eax, si
mov word [esp + 0x10], si
cmp eax, 0x100
jae 0x44970f
mov byte [esp + eax + 0x50], 0
lea ecx, [edi + 0x110]
mov eax, dword [esp + 0x10]
inc eax
movzx esi, ax
call fcn.0042e110
mov ebx, eax
test ebx, ebx
je 0x449454
mov ecx, dword [0x519aa0]
xor eax, eax
push 0
mov dword [esp + 0x18], eax
mov eax, 0x1301
push 4
push esi
mov word [esp + 0x20], ax
mov dword [esp + 0x24], 0
mov dword [esp + 0x2c], esi
call fcn.00401140
push esi
lea ecx, [esp + 0x54]
mov dword [esp + 0x20], eax
push ecx
push eax
call fcn.00407040
add esp, 0xc
lea esi, [ebx + 8]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebx]
lea eax, [esp + 0x14]
push eax
call fcn.00401dc0
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ebx, [edi + 0x108]
lea edx, [esp + 0x30]
mov ecx, ebx
call fcn.0042db20
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push dword [0x51dbec]
mov ecx, dword [esp + 0x3c]
sub ecx, dword [0x51dbf0]
push dword [0x51dbe8]
mov eax, dword [esp + 0x44]
sbb eax, dword [0x51dbf4]
push eax
push ecx
call fcn.004fce10
mov esi, eax
mov eax, edx
add esi, 0xea60
mov dword [esp + 0x34], esi
adc eax, 0
mov dword [esp + 0x10], eax
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push dword [0x51dbec]
mov ecx, dword [esp + 0x3c]
sub ecx, dword [0x51dbf0]
push dword [0x51dbe8]
mov eax, dword [esp + 0x44]
sbb eax, dword [0x51dbf4]
push eax
push ecx
call fcn.004fce10
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
cmp edx, dword [esp + 0x10]
ja 0x449618
jb 0x4494fa
cmp eax, esi
jae 0x449618
mov esi, dword [esp + 0x30]
mov edi, edi
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4495c8
lea edx, [esp + 0x14]
mov ecx, ebx
call fcn.0042da90
test al, al
je 0x4495c8
jmp 0x449530
mov eax, 0x1201
cmp word [esp + 0x14], ax
je 0x44954a
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.00447390
jmp 0x449557
mov eax, dword [esp + 0x18]
sub eax, 0
jne 0x449631
cmp dword [esp + 0x20], 0
jbe 0x4495b5
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4495b5
mov edi, dword [0x519aa0]
mov edx, dword [edi]
cmp edx, vtable.rhea::AllocatorSimple_class_rhea::AllocatorTrackingPolicy_simple_.0
jne 0x449714
movzx ecx, byte [eax - 4]
lea edx, [eax - 8]
movzx eax, byte [edx + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 7]
shl ecx, 0x10
or ecx, eax
movzx eax, byte [edx + 6]
dec dword [edi + 0x18]
and ecx, 0x3fffffff
shl eax, 8
or ecx, eax
sub dword [edi + 0x1c], ecx
push edx
call fcn.0040beca
add esp, 4
mov edi, dword [esp + 0x28]
lea edx, [esp + 0x14]
mov ecx, ebx
call fcn.0042da90
test al, al
jne 0x449530
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push dword [0x51dbec]
mov ecx, dword [esp + 0x3c]
sub ecx, dword [0x51dbf0]
push dword [0x51dbe8]
mov eax, dword [esp + 0x44]
sbb eax, dword [0x51dbf4]
push eax
push ecx
call fcn.004fce10
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
cmp edx, dword [esp + 0x10]
ja 0x449618
jb 0x449500
cmp eax, dword [esp + 0x34]
jb 0x449500
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.00403d8c
mov esp, ebp
pop ebp
ret 0x14
sub eax, 1
je 0x449655
cmp dword [esp + 0x20], 0
jbe 0x449618
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x449618
mov ecx, dword [0x519aa0]
push 0
push eax
call fcn.00401560
jmp 0x449618
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
push esi
push ebx
push dword [esp + 0x34]
call fcn.00407040
add esp, 0xc
test esi, esi
je 0x449681
test ebx, ebx
je 0x449681
mov ecx, dword [0x519aa0]
push 0
push ebx
call fcn.00401560
mov ecx, dword [esp + 0x24]
xor dl, dl
mov al, byte [ebp + 0xc]
xor bl, bl
mov byte [edi + 0x118], al
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x449695
sub ecx, esi
je 0x4496d5
mov edi, dword [esp + 0x24]
xor ecx, ecx
mov cl, byte [ecx + edi]
mov al, cl
sub al, 0x30
cmp al, 9
ja 0x4496ba
movzx eax, dl
inc dl
mov byte [esp + eax + 0x40], cl
mov eax, edi
inc bl
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4496c1
sub eax, esi
movzx ecx, bl
cmp ecx, eax
jb 0x4496a6
mov edi, dword [esp + 0x28]
movzx eax, dl
cmp eax, 0x10
jae 0x44970f
mov byte [esp + eax + 0x40], 0
lea eax, [esp + 0x40]
push eax
call fcn.0040bea5
mov ecx, dword [esp + 0x158]
add esp, 4
mov word [edi + 0x11a], ax
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00403d8c
mov esp, ebp
pop ebp
ret 0x14
call fcn.0040440a
push 0
push eax
mov ecx, edi
call dword [edx + 0x10]
jmp 0x4495b1