Function at 0x4c6850
Capabilities:
Check for time delay via queryperformancecounter
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x4d0a08
mov eax, dword fs:[0]
push eax
sub esp, 0x1a8
push ebx
push esi
push edi
mov eax, dword [0x50f880]
xor eax, esp
push eax
lea eax, [esp + 0x1b8]
mov dword fs:[0], eax
xor edi, edi
push 0x1c
mov dword [esp + 0x60], edi
call fcn.0045401f
add esp, 4
cmp eax, edi
je 0x4c722b
mov dword [esp + 0x58], eax
mov dword [eax], eax
mov eax, dword [esp + 0x58]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x58]
mov dword [eax + 8], eax
mov eax, dword [esp + 0x58]
mov ebx, 1
mov byte [eax + 0x18], bl
mov ecx, dword [esp + 0x58]
mov byte [ecx + 0x19], bl
mov dword [esp + 0x1c0], edi
push 0x1c
mov dword [esp + 0x50], edi
call fcn.0045401f
add esp, 4
cmp eax, edi
je 0x4c71f9
mov dword [esp + 0x48], eax
mov dword [eax], eax
mov eax, dword [esp + 0x48]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x48]
mov dword [eax + 8], eax
mov edx, dword [esp + 0x48]
mov byte [edx + 0x18], bl
mov eax, dword [esp + 0x48]
mov byte [eax + 0x19], bl
lea ecx, [esp + 0x12c]
push ecx
mov byte [esp + 0x1c4], bl
call fcn.00437850
push 0x20
mov byte [esp + 0x1c4], 2
call fcn.0045401f
mov esi, eax
add esp, 4
mov dword [esp + 0x30], esi
mov byte [esp + 0x1c0], 3
cmp esi, edi
je 0x4c696b
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [ecx]
sub esp, 8
mov dword [esp + 0x3c], edx
mov edx, esp
mov dword [edx], eax
mov ecx, dword [ecx + 4]
mov dword [esp + 0x40], esp
mov dword [edx + 4], ecx
cmp ecx, edi
je 0x4c6960
add ecx, 4
lock xadd dword [ecx], ebx
mov eax, dword [esp + 0x3c]
call fcn.0042e230
jmp 0x4c696d
xor eax, eax
lea ecx, [esp + 0x94]
push ecx
mov edi, eax
mov byte [esp + 0x1c4], 2
call fcn.00437b30
mov byte [esp + 0x1c0], 4
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [eax + 4], 0
mov dword [eax], 0
mov esi, dword [esp + 0x170]
mov dword [esp + 0x16c], ecx
mov dword [esp + 0x170], edx
test esi, esi
je 0x4c69e1
lea edx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x4c69e1
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4c69e1
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov byte [esp + 0x1c0], 2
mov esi, dword [esp + 0x98]
test esi, esi
je 0x4c6a1e
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4c6a1e
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4c6a1e
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov eax, dword [esp + 0x16c]
mov ebx, dword [eax + 0xc]
lea ecx, [esp + 0xc4]
push ecx
call fcn.00401920
mov edx, dword [eax + 0x20]
or edx, dword [eax + 0x24]
jne 0x4c6a41
mov bl, 1
jmp 0x4c6a43
xor bl, bl
lea esi, [esp + 0xc4]
call fcn.00401a10
test bl, bl
je 0x4c6ae0
lea eax, [esp + 0x12c]
push eax
mov byte [esp + 0x1c4], 1
call fcn.00437950
mov byte [esp + 0x1c0], 5
mov eax, dword [esp + 0x48]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [esp + 0x70]
lea esi, [esp + 0x4c]
call fcn.004350e0
mov ecx, dword [esp + 0x48]
push ecx
call fcn.00453bd6
add esp, 4
mov dword [esp + 0x1c0], 6
mov eax, dword [esp + 0x58]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [esp + 0x70]
lea esi, [esp + 0x5c]
call fcn.004350e0
mov edx, dword [esp + 0x58]
push edx
call fcn.00453bd6
add esp, 4
mov eax, 0x80070070
mov ecx, dword [esp + 0x1b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 0x24]
mov eax, dword [esp + 0x16c]
mov edx, dword [ebx + 0x20]
xor esi, esi
mov dword [esp + 0x174], esi
mov dword [esp + 0x178], esi
cmp ecx, esi
je 0x4c6b12
lea esi, [ecx + 4]
mov edi, 1
lock xadd dword [esi], edi
xor esi, esi
mov dword [eax + 0x14], edx
mov edi, dword [eax + 0x18]
mov dword [eax + 0x18], ecx
cmp edi, esi
je 0x4c6b49
lea eax, [edi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4c6b49
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
lea ecx, [edi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4c6b49
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov ecx, edi
call edx
push 0x28
mov dword [esp + 0x84], esi
call fcn.0045401f
add esp, 4
cmp eax, esi
je 0x4c71c7
mov dword [esp + 0x7c], eax
mov dword [eax], eax
mov eax, dword [esp + 0x7c]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x7c]
mov dword [eax + 8], eax
mov eax, dword [esp + 0x7c]
mov byte [eax + 0x20], 1
mov ecx, dword [esp + 0x7c]
mov byte [ecx + 0x21], 1
sub esp, 0x68
mov edx, esp
mov dword [esp + 0xa0], esp
lea edi, [ebx + 0x58]
push edx
mov byte [esp + 0x22c], 7
call fcn.00402c60
mov eax, dword [ebx]
sub esp, 8
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0xa8], esp
mov dword [ecx + 4], eax
cmp eax, esi
je 0x4c6bc9
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
lea edx, [esp + 0xe8]
push edx
lea eax, [esp + 0xb8]
push eax
lea ecx, [esp + 0xcc]
push ecx
call fcn.004b8fb0
add esp, 0x7c
mov byte [esp + 0x1c0], 8
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [esp + 0x38]
lea esi, [esp + 0x80]
call fcn.004351a0
mov byte [esp + 0x1c0], 2
mov edx, dword [esp + 0x7c]
push edx
call fcn.00453bd6
add esp, 4
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x74]
push edx
push ebx
call fcn.004c6550
mov byte [esp + 0x1c0], 9
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax]
push eax
push ecx
lea eax, [esp + 0x38]
xor esi, esi
xor edi, edi
push eax
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], edi
call fcn.0044a810
mov ecx, dword [esp + 0x78]
mov eax, dword [eax]
add esp, 0xc
push ecx
push eax
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x78]
push eax
call fcn.0044a360
lea ecx, [esp + 0x6c]
call fcn.0044a400
mov ecx, dword [esp + 0x6c]
mov eax, dword [ecx]
cmp eax, ecx
je 0x4c6c90
add esi, dword [eax + 0x10]
adc edi, dword [eax + 0x14]
mov eax, dword [eax]
jmp 0x4c6c82
fldz
mov dword [esp + 0x3c], esi
mov esi, dword [ebx]
fstp qword [esp + 0x9c]
mov dword [esp + 0x40], edi
lea edi, [esi + 0x24c]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add esi, 0x264
push edi
mov dword [esp + 0xb0], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test byte [0x51a6f4], 1
jne 0x4c6cf6
or dword [0x51a6f4], 1
mov byte [esp + 0x1c0], 0xa
call fcn.0044cc80
push 0x4d8b70
call fcn.00454c0f
add esp, 4
mov byte [esp + 0x1c0], 9
fild qword [esp + 0x3c]
sub esp, 8
mov esi, 0x51a5f0
fst qword [esp + 0x10c]
fstp qword [esp]
call fcn.00490180
mov eax, dword [0x51a630]
test eax, eax
jne 0x4c6d51
push 0x4e013c
lea eax, [esp + 0xb4]
mov dword [esp + 0xb4], str.COperationTimeCalculator::Start
mov dword [esp + 0xb8], 0x18a
mov dword [esp + 0xbc], 2
call fcn.00409c10
add esp, 4
jmp 0x4c6d58
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esp + 0x6c]
mov esi, dword [eax]
mov dword [esp + 0x64], esi
mov dword [esp + 0xa8], eax
lea esp, [esp]
cmp esi, dword [esp + 0xa8]
je 0x4c7123
mov eax, dword [0x51a630]
test eax, eax
jne 0x4c6dbd
push str.operationWatch___NULL
lea eax, [esp + 0xfc]
mov dword [esp + 0xfc], str.COperationTimeCalculator::Stop
mov dword [esp + 0x100], 0x197
mov dword [esp + 0x104], 2
call fcn.00409c10
add esp, 4
jmp 0x4c6dd3
mov ebx, eax
call fcn.00423ef0
fadd dword [0x51a660]
mov ebx, dword [ebp + 8]
fstp dword [0x51a660]
mov eax, dword [0x51a630]
test eax, eax
jne 0x4c6e0d
push 0x4e013c
lea eax, [esp + 0x7c]
mov dword [esp + 0x7c], str.COperationTimeCalculator::Start
mov dword [esp + 0x80], 0x18a
mov dword [esp + 0x84], 2
call fcn.00409c10
add esp, 4
jmp 0x4c6e14
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
sub esp, 8
mov eax, esp
lea ecx, [esi + 8]
mov dword [esp + 0x40], esp
call fcn.0040a4a0
lea eax, [esp + 0x3c]
push eax
push ebx
call fcn.004c63f0
mov byte [esp + 0x1c0], 0xb
fild qword [esi + 0x10]
lea eax, [esi + 0x10]
xor edi, edi
fdiv qword [esp + 0x104]
push 0x20
mov dword [esp + 0x3c], eax
lea ebx, [esp + 0xa0]
mov byte [esp + 0xc8], 0
mov dword [esp + 0xc9], edi
mov dword [esp + 0xcd], edi
mov dword [esp + 0xd1], edi
mov dword [esp + 0xd5], edi
mov dword [esp + 0xd9], edi
mov dword [esp + 0xdd], edi
mov dword [esp + 0xe5], edi
fadd qword [esp + 0xa0]
fst qword [esp + 0xb4]
fstp qword [esp + 0x128]
call fcn.0045401f
add esp, 4
cmp eax, edi
je 0x4c70f1
mov dword [esp + 0xdd], eax
mov dword [eax], eax
mov eax, dword [esp + 0xdd]
mov dword [eax + 4], eax
mov dword [esp + 0xbc], edi
mov dword [esp + 0xc0], edi
mov byte [esp + 0x1c0], 0xd
mov ecx, dword [esp + 0x120]
mov edx, dword [esp + 0x124]
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x138]
mov dword [eax + 8], edx
lea edx, [esp + 0xcc]
push edx
mov dword [eax + 0xc], ecx
push edi
lea eax, [esp + 0xdc]
push eax
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x14c]
push edx
call fcn.004bacc0
mov edi, eax
mov eax, dword [esp + 0x190]
mov ebx, dword [eax + 0xc]
add esp, 0x24
add ebx, 0x24c
push ebx
mov dword [esp + 0x98], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x98], 1
mov byte [esp + 0x1c0], 0xe
mov edx, dword [esi + 8]
sub esp, 8
mov ecx, esp
mov dword [ecx], edx
mov eax, dword [esi + 0xc]
mov dword [esp + 0x44], esp
mov dword [ecx + 4], eax
test eax, eax
je 0x4c6f7a
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
mov ecx, dword [esp + 0xb4]
lea edx, [esp + 0xcc]
push edx
call fcn.00433e50
push ebx
mov byte [esp + 0x1c4], 0xc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [esp + 0x98], 0
test edi, edi
je 0x4c6fcc
mov eax, dword [esp + 0x38]
fild qword [eax]
sub esp, 8
mov esi, 0x51a5f0
fadd qword [0x51a658]
fstp qword [esp]
call fcn.004905d0
mov eax, esi
call fcn.00490570
fld qword [esp + 0xb0]
fcom qword [esp + 0x9c]
fnstsw ax
test ah, 0x41
jne 0x4c6fea
fstp qword [esp + 0x9c]
jmp 0x4c6fec
fstp st(0)
lea esi, [esp + 0xc4]
call fcn.00423eb0
mov byte [esp + 0x1c0], 9
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
cmp edi, 0x80004004
je 0x4c703c
test edx, edx
jg 0x4c7028
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x64]
mov edx, dword [ecx]
mov ebx, dword [ebp + 8]
mov dword [esp + 0x64], edx
mov esi, edx
jmp 0x4c6d70
test edx, edx
jg 0x4c704a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ebx, [esp + 0x6c]
mov byte [esp + 0x1c0], 0xf
call fcn.0040be00
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.00453bd6
add esp, 4
lea edx, [esp + 0x12c]
push edx
mov byte [esp + 0x1c4], 1
call fcn.00437950
mov byte [esp + 0x1c0], 0x10
mov eax, dword [esp + 0x48]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [esp + 0x44]
lea esi, [esp + 0x4c]
call fcn.004350e0
mov eax, dword [esp + 0x48]
push eax
call fcn.00453bd6
add esp, 4
mov dword [esp + 0x1c0], 0x11
mov eax, dword [esp + 0x58]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [esp + 0x44]
lea esi, [esp + 0x5c]
call fcn.004350e0
mov ecx, dword [esp + 0x58]
push ecx
call fcn.00453bd6
add esp, 4
mov eax, 0x80004004
mov ecx, dword [esp + 0x1b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x8c]
mov dword [esp + 0x34], edi
call fcn.004541b0
push 0x4ff0c0
lea eax, [esp + 0x8c]
push eax
mov dword [esp + 0x90], vtable.std::bad_alloc.0
call fcn.00457e5a
lea ebx, [esp + 0x6c]
mov byte [esp + 0x1c0], 0x12
call fcn.0040be00
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.00453bd6
add esp, 4
lea edx, [esp + 0x12c]
push edx
mov byte [esp + 0x1c4], 1
call fcn.00437950
mov byte [esp + 0x1c0], 0x13
mov eax, dword [esp + 0x48]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [esp + 0x44]
lea esi, [esp + 0x4c]
call fcn.004350e0
mov eax, dword [esp + 0x48]
push eax
call fcn.00453bd6
add esp, 4
mov dword [esp + 0x1c0], 0x14
mov eax, dword [esp + 0x58]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [esp + 0x44]
lea esi, [esp + 0x5c]
call fcn.004350e0
mov ecx, dword [esp + 0x58]
push ecx
call fcn.00453bd6
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x1b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x8c]
mov dword [esp + 0x34], esi
call fcn.004541b0
push 0x4ff0c0
lea eax, [esp + 0x8c]
push eax
mov dword [esp + 0x90], vtable.std::bad_alloc.0
call fcn.00457e5a
lea ecx, [esp + 0x68]
push ecx
lea ecx, [esp + 0x114]
mov dword [esp + 0x6c], edi
call fcn.004541b0
push 0x4ff0c0
lea edx, [esp + 0x114]
push edx
mov dword [esp + method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.00457e5a
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x8c]
mov dword [esp + 0x34], edi
call fcn.004541b0
push 0x4ff0c0
lea ecx, [esp + 0x8c]
push ecx
mov dword [esp + 0x90], vtable.std::bad_alloc.0
call fcn.00457e5a
int3