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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x431576
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x448178]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push esi
push edi
mov eax, dword [0x448178]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x5c], vtable.MA::Array_double_.0
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
lea esi, [edi + 0x2c]
mov dword [esp + 0xb8], ebx
push esi
mov dword [esp + 0x5c], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0xb8], 1
cmp dword [edi + 0xc], ebx
je 0x412809
movq xmm0, qword [edi + 0x98]
movq qword [esp + 0x24], xmm0
movq xmm0, qword [edi + 0xa0]
lea eax, [esp + 0x98]
push eax
lea ecx, [edi + 0x94]
movq qword [esp + 0x30], xmm0
call fcn.004144b0
test eax, eax
js 0x412027
mov edx, dword [esp + 0x98]
mov eax, dword [esp + 0xa4]
mov ecx, dword [esp + 0x9c]
cmp dword [esp + 0x24], edx
jne 0x412008
cmp dword [esp + 0x28], ecx
jne 0x412008
cmp dword [esp + 0x30], eax
je 0x412027
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], ecx
mov ecx, dword [edi + 0xc]
push 0xc
lea edx, [esp + 0x70]
mov dword [esp + 0x78], eax
mov eax, dword [ecx]
push edx
push 0xfffffc04
call dword [eax]
lea eax, [esp + 0x1c]
push eax
lea ecx, [edi + 0x8c]
call fcn.00414390
test eax, eax
jne 0x41204e
mov ecx, dword [edi + 0xc]
push 4
mov eax, dword [ecx]
lea edx, [esp + 0x20]
push edx
push 0xfffffc03
call dword [eax]
mov eax, dword [edi + 0x80]
movq xmm0, qword [edi + 0x78]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x8c]
lea ecx, [edi + 0x74]
push eax
movq qword [esp + 0x70], xmm0
call fcn.004141c0
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
js 0x412233
mov eax, dword [esp + 0x6c]
cmp eax, dword [esp + 0x8c]
jne 0x4120b0
mov eax, dword [esp + 0x70]
cmp eax, dword [esp + 0x90]
jne 0x4120b0
mov eax, dword [esp + 0x18]
xor cl, cl
cmp eax, dword [esp + 0x94]
jne 0x4120b2
mov byte [esp + 0x23], cl
jmp 0x4120b7
mov cl, 1
mov byte [esp + 0x23], 1
xor eax, eax
mov dword [esp + 0x24], vtable.MA::Array_struct_ClockSourceInstance_.0
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov byte [esp + 0xb8], 2
test cl, cl
je 0x4121f4
lea ecx, [ecx]
push dword [esp + 0x90]
lea ecx, [esp + 0x2c]
call fcn.00413860
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x24]
call dword [eax]
xor ebx, ebx
cmp dword [esp + 0x90], ebx
jbe 0x4121d4
mov dword [esp + 0x18], ebx
lea ecx, [ecx]
movq xmm0, qword [0x43c818]
mov eax, dword [edi + 0x60]
push 0
lea ecx, [esp + 0x18]
push ecx
push 0x10
lea ecx, [esp + 0x78]
push ecx
push 0x20
lea ecx, [esp + 0x48]
movq qword [esp + 0x48], xmm0
movq xmm0, qword [0x43c820]
push ecx
push 0x2f0003
mov dword [esp + 0x30], 0
movq qword [esp + 0x58], xmm0
mov dword [esp + 0x60], 0xd
mov dword [esp + 0x64], 1
mov dword [esp + 0x68], ebx
push dword [eax + 0x18]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x412188
movq xmm0, qword [esp + 0x6c]
movq qword [edi + 0x64], xmm0
movq xmm0, qword [esp + 0x74]
movq qword [edi + 0x6c], xmm0
mov eax, dword [esp + 0x6c]
cmp eax, dword [esp + 0x8c]
jne 0x41231a
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x24]
call dword [eax + 0x64]
mov ecx, dword [esp + 0x18]
movq xmm0, qword [esp + 0x6c]
movq qword [eax + ecx], xmm0
movq xmm0, qword [esp + 0x74]
movq qword [eax + ecx + 8], xmm0
inc ebx
add ecx, 0x10
mov dword [esp + 0x18], ecx
cmp ebx, dword [esp + 0x90]
jb 0x412110
mov ecx, dword [edi + 0xc]
push 0x10
mov eax, dword [ecx]
lea edx, [esp + 0x28]
push edx
push 0xfffffc06
call dword [eax]
mov eax, dword [esp + 0x28]
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
lea esi, [edi + 0x2c]
cmp byte [esp + 0x23], 0
je 0x412215
mov ecx, dword [edi + 0xc]
push 4
mov eax, dword [ecx]
lea edx, [esp + 0x98]
push edx
push 0xfffffc05
call dword [eax]
mov eax, dword [esp + 0x28]
mov byte [esp + 0xb8], 1
mov dword [esp + 0x24], vtable.MA::Array_struct_ClockSourceInstance_.0
test eax, eax
je 0x412233
push eax
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
movq xmm0, qword [edi + 0xb4]
mov eax, dword [edi + 0xb0]
push 0
lea ecx, [esp + 0x18]
push ecx
push 0x10
movq qword [esp + 0x30], xmm0
movq xmm0, qword [edi + 0xbc]
lea ecx, [esp + 0x88]
push ecx
movq qword [esp + 0x3c], xmm0
movq xmm0, qword [0x43c818]
push 0x18
lea ecx, [esp + 0x48]
movq qword [esp + 0x48], xmm0
movq xmm0, qword [0x43c820]
push ecx
push 0x2f0003
mov dword [esp + 0x30], 0
movq qword [esp + 0x58], xmm0
mov dword [esp + 0x60], 0xe
mov dword [esp + 0x64], 1
push dword [eax + 0x18]
call ebx
test eax, eax
je 0x412559
movq xmm0, qword [esp + 0x7c]
mov eax, dword [esp + 0x24]
movq qword [edi + 0xb4], xmm0
movq xmm0, qword [esp + 0x84]
movq qword [edi + 0xbc], xmm0
cmp eax, dword [esp + 0x7c]
jne 0x41239f
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x80]
jne 0x41239f
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x84]
jne 0x41239f
mov eax, dword [esp + 0x30]
cmp eax, dword [esp + 0x88]
jne 0x41239f
xor cl, cl
jmp 0x4123a1
movq xmm0, qword [0x43c818]
mov eax, dword [edi + 0x74]
push 0
lea ecx, [esp + 0x18]
push ecx
push 0xc
lea ecx, [esp + 0x98]
push ecx
push 0x18
lea ecx, [esp + 0x48]
movq qword [esp + 0x48], xmm0
movq xmm0, qword [0x43c820]
push ecx
push 0x2f0003
mov dword [esp + 0x30], 0
movq qword [esp + 0x58], xmm0
mov dword [esp + 0x60], 0xc
mov dword [esp + 0x64], 1
push dword [eax + 0x18]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4120e0
movq xmm0, qword [esp + 0x8c]
mov eax, dword [esp + 0x94]
movq qword [edi + 0x78], xmm0
mov dword [edi + 0x80], eax
jmp 0x4120e0
mov cl, 1
xor eax, eax
mov dword [esp + 0x24], vtable.MA::Array_double_.0
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov byte [esp + 0xb8], 3
test cl, cl
je 0x41253b
jmp 0x4123d0
mov eax, dword [esp + 0x80]
add eax, 2
push eax
lea ecx, [esp + 0x2c]
call fcn.00413760
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x24]
call dword [eax]
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x24]
call dword [eax + 0x64]
mov ecx, dword [esp + 0x84]
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x43dbf0]
lea ecx, [esp + 0x24]
movsd qword [eax], xmm0
mov eax, dword [esp + 0x24]
call dword [eax + 0x64]
movd xmm0, dword [esp + 0x88]
cvtdq2pd xmm0, xmm0
xor ebx, ebx
movsd qword [eax + 8], xmm0
cmp dword [esp + 0x80], ebx
jbe 0x41251e
mov dword [esp + 0x18], 0x10
lea esp, [esp]
movq xmm0, qword [0x43c818]
mov eax, dword [edi + 0xc4]
push 0
lea ecx, [esp + 0x18]
push ecx
push 0xc
lea ecx, [esp + 0x78]
push ecx
push 0x20
lea ecx, [esp + 0x48]
movq qword [esp + 0x48], xmm0
movq xmm0, qword [0x43c820]
push ecx
push 0x2f0003
mov dword [esp + 0x30], 0
movq qword [esp + 0x58], xmm0
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x64], 1
mov dword [esp + 0x68], ebx
push dword [eax + 0x18]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4124cd
movq xmm0, qword [esp + 0x6c]
mov eax, dword [esp + 0x74]
movq qword [edi + 0xc8], xmm0
mov dword [edi + 0xd0], eax
mov eax, dword [esp + 0x6c]
cmp eax, dword [esp + 0x7c]
jne 0x4126b3
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x24]
call dword [eax + 0x64]
mov edx, dword [esp + 0x18]
inc ebx
lea ecx, [eax + edx]
mov eax, dword [esp + 0x74]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
add edx, 8
addsd xmm0, qword [eax*8 + 0x43dbf0]
mov dword [esp + 0x18], edx
movsd qword [ecx], xmm0
cmp ebx, dword [esp + 0x80]
jb 0x412450
mov ecx, dword [edi + 0xc]
push 0x10
mov eax, dword [ecx]
lea edx, [esp + 0x28]
push edx
push 0xfffffc01
call dword [eax]
mov eax, dword [esp + 0x28]
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov byte [esp + 0xb8], 1
mov dword [esp + 0x24], vtable.MA::Array_double_.0
test eax, eax
je 0x412559
push eax
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [edi + 0x48]
movq xmm0, qword [0x43c818]
push 0
lea ecx, [esp + 0x18]
push ecx
push 4
lea ecx, [esp + 0x28]
push ecx
push 0x18
lea ecx, [esp + 0x48]
movq qword [esp + 0x48], xmm0
movq xmm0, qword [0x43c820]
push ecx
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0x44]
push 0x2f0003
mov dword [esp + 0x30], 0
movq qword [esp + 0x58], xmm0
mov dword [esp + 0x60], 4
mov dword [esp + 0x64], 1
push dword [eax + 0x18]
call ebx
test eax, eax
je 0x4125f4
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x48], eax
cmp dword [esp + 0x18], eax
je 0x4125f4
mov ecx, dword [edi + 0xc]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
push 8
addsd xmm0, qword [eax*8 + 0x43dbf0]
lea edx, [esp + 0x70]
push edx
push 0xfffffc00
movsd qword [esp + 0x78], xmm0
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [edi + 0xac]
movq xmm0, qword [0x43c818]
push 0
lea ecx, [esp + 0x18]
push ecx
push 4
lea ecx, [esp + 0x28]
push ecx
push 0x18
lea ecx, [esp + 0x48]
movq qword [esp + 0x48], xmm0
movq xmm0, qword [0x43c820]
push ecx
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0xa8]
push 0x2f0003
mov dword [esp + 0x30], 0
movq qword [esp + 0x58], xmm0
mov dword [esp + 0x60], 9
mov dword [esp + 0x64], 1
push dword [eax + 0x18]
call ebx
test eax, eax
je 0x41267e
mov eax, dword [esp + 0x1c]
mov dword [edi + 0xac], eax
cmp dword [esp + 0x18], eax
je 0x41267e
mov ecx, dword [edi + 0xc]
push 4
mov eax, dword [ecx]
lea edx, [esp + 0x20]
push edx
push 0xfffffc0a
call dword [eax]
mov eax, dword [edi + 0x88]
lea ecx, [edi + 0x84]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x1c]
push eax
call fcn.00412f40
test eax, eax
js 0x41273f
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x1c]
je 0x412754
jmp 0x412741
movq xmm0, qword [0x43c818]
mov eax, dword [edi + 0xb0]
push 0
lea ecx, [esp + 0x18]
push ecx
push 0x10
lea ecx, [esp + 0x88]
push ecx
push 0x18
lea ecx, [esp + 0x48]
movq qword [esp + 0x48], xmm0
movq xmm0, qword [0x43c820]
push ecx
push 0x2f0003
mov dword [esp + 0x30], 0
movq qword [esp + 0x58], xmm0
mov dword [esp + 0x60], 0xe
mov dword [esp + 0x64], 1
push dword [eax + 0x18]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4123d0
movq xmm0, qword [esp + 0x7c]
movq qword [edi + 0xb4], xmm0
movq xmm0, qword [esp + 0x84]
movq qword [edi + 0xbc], xmm0
jmp 0x4123d0
jne 0x412754
mov ecx, dword [edi + 0xc]
push 4
mov eax, dword [ecx]
lea edx, [esp + 0x20]
push edx
push 0xfffffc07
call dword [eax]
mov eax, dword [edi + 0xe0]
movq xmm0, qword [0x43c818]
push 0
lea ecx, [esp + 0x18]
push ecx
push 4
lea ecx, [esp + 0x28]
push ecx
push 0x18
lea ecx, [esp + 0x48]
movq qword [esp + 0x48], xmm0
movq xmm0, qword [0x43c820]
push ecx
mov dword [esp + 0x84], eax
mov eax, dword [edi + 0xdc]
push 0x2f0003
mov dword [esp + 0x30], 0
movq qword [esp + 0x58], xmm0
mov dword [esp + 0x60], 0x11
mov dword [esp + 0x64], 1
push dword [eax + 0x18]
mov dword [esp + 0x38], 0x80004005
call ebx
mov ecx, dword [esp + 0x1c]
test eax, eax
je 0x4127d8
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [edi + 0xe0], ecx
jmp 0x4127dd
mov eax, 0x80004005
test eax, eax
js 0x4127f0
xor eax, eax
cmp dword [esp + 0x6c], ecx
sete al
mov dword [esp + 0x18], eax
test eax, eax
jne 0x412805
mov ecx, dword [edi + 0xc]
push 4
mov edx, dword [ecx]
lea eax, [esp + 0x20]
push eax
push 0xfffffc0c
call dword [edx]
mov ebx, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.0042df3e
mov esp, ebp
pop ebp
ret