Function at 0x215670
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x28
push ebx
push ebp
mov ebp, dword [esp + 0x34]
push esi
mov esi, dword [ebp + 0x160]
xor ebx, ebx
cmp esi, ebx
push edi
mov dword [esp + 0x3c], ebx
je 0x2156fb
jmp 0x215690
xor eax, eax
lea ecx, [esi + 0x2d0]
jmp 0x2156a0
mov edx, dword [ecx]
mov edi, dword [esp + 0x40]
cmp edx, dword [edi + eax*4]
jne 0x2156f0
add eax, 1
add ecx, 4
cmp eax, 9
jl 0x2156a0
cmp esi, dword [ebp + 0x160]
je 0x2158d2
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x44]
mov dword [ecx + 4], eax
mov edx, dword [ebp + 0x160]
mov dword [esi + 4], edx
mov dword [ebp + 0x160], esi
call fcn.00211950
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x28
ret 0xc
mov dword [esp + 0x3c], esi
mov esi, dword [esi + 4]
cmp esi, ebx
jne 0x215690
push 0x798
push 0x527e10
call fcn.000b7380
cmp eax, ebx
je 0x21572f
mov ecx, dword [ebp + 0x16c]
push ecx
mov esi, eax
call fcn.0020fc90
cmp eax, ebx
je 0x21572f
mov edx, dword [ebp + 0x160]
mov dword [eax + 4], edx
mov dword [ebp + 0x160], eax
cmp dword [ebp + 0x160], ebx
jne 0x215741
mov dword [ebp + 0x160], 0x528f78
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x30]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x78]
test al, al
jne 0x2157d9
cmp dword [ebp + 0x16c], ebx
je 0x2157d9
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x30]
mov edx, dword [ebp]
mov ecx, ebp
lea esi, [eax + 0x34]
call dword [edx + 0x30]
lea edi, [eax + 0x34]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov ebx, edx
mov edx, dword [edi]
mov ecx, edi
mov esi, eax
call dword [edx + 0x4c]
mov edx, dword [esp + 0x40]
mov ecx, dword [ebp + 0x16c]
push edx
push ebx
push esi
push eax
lea edi, [ecx + 0x6340]
call fcn.001646b0
mov ecx, eax
test ecx, ecx
je 0x2157d7
cmp dword [ecx], 6
mov edx, dword [ebp + 0x168]
mov eax, dword [ebp + 0x160]
jne 0x2157c4
push eax
mov eax, dword [esp + 0x44]
call fcn.0020fe50
jmp 0x2157cf
push edx
push eax
mov eax, dword [esp + 0x48]
call fcn.0020ffd0
test al, al
jne 0x2158b8
xor ebx, ebx
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
call sub.WIN32K.SYS_EngQueryPerformanceFrequency
lea ecx, [esp + 0x20]
mov esi, 1
push ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x14], esi
call sub.WIN32K.SYS_EngQueryPerformanceCounter
mov edi, dword [esp + 0x44]
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x1c]
mov edx, dword [ebp]
push eax
mov eax, dword [esp + 0x44]
push ecx
push eax
mov ecx, ebp
call dword [edx + 0x80]
test al, al
jne 0x21585b
mov ecx, dword [ebp + 0x160]
cmp ecx, 0x528f78
mov esi, dword [ecx + 4]
je 0x215849
cmp ecx, ebx
je 0x215849
mov edx, dword [ecx]
push 1
call dword [edx]
pop edi
mov dword [ebp + 0x160], esi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x28
ret 0xc
lea eax, [esp + 0x28]
push eax
call sub.WIN32K.SYS_EngQueryPerformanceCounter
cmp dword [esp + 0x10], ebx
je 0x215883
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
sbb edx, dword [esp + 0x24]
add dword [esp + 0x30], ecx
adc dword [esp + 0x34], edx
mov eax, dword [esp + 0x18]
or eax, dword [esp + 0x1c]
je 0x215899
fild qword [esp + 0x30]
fild qword [esp + 0x18]
fdivp st(1)
jmp 0x21589f
fld dword [0x41bc54]
mov eax, dword [0x4e73e0]
fadd dword [eax + 0x3b00]
fstp dword [eax + 0x3b00]
add dword [eax + 0x3b04], esi
jmp 0x2158bc
mov edi, dword [esp + 0x44]
mov esi, dword [ebp + 0x160]
call fcn.00211950
mov esi, dword [ebp + 0x160]
call fcn.00211a00
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x28
ret 0xc