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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x194
push ebx
mov bh, byte [ebp + 8]
push esi
mov esi, ecx
push edi
mov edx, dword [esi + 0x68]
test edx, 0x200
je 0x100702fe
cmp dword [esi + 0x14], 0
jne 0x100702fe
mov eax, dword [esi + 0x1c]
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0xb38]
test cl, cl
jns 0x1006ff96
test cl, 1
je 0x100702fe
cmp dword [eax + 0xaec], 0xffffffff
jne 0x100702fe
mov edi, dword [0x11d0c5b8]
xor bl, bl
test edx, 0x100
je 0x1006ffea
mov ecx, dword fs:[0x2c]
mov ecx, dword [ecx + edi*4]
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + 0x7a68]
mov eax, dword [eax + 0x2d98]
sub eax, dword [esi + 0x70]
add dword [esi + 0x50], eax
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + 0x7a68]
mov eax, dword [eax + 0x2d98]
mov dword [esi + 0x70], eax
mov eax, dword fs:[0x2c]
mov edi, dword [eax + edi*4]
mov eax, dword [edi + 0x10]
mov ecx, dword [eax + 0x7d14]
test dl, 1
je 0x10070021
test bh, bh
jne 0x10070021
cmp ecx, dword [esi + 0x78]
jbe 0x10070021
mov eax, ecx
sub eax, dword [esi + 0x78]
cmp eax, dword [esi + 0x84]
jbe 0x10070021
mov bl, 1
jmp 0x100700b2
test dl, 0x40
je 0x1007002e
test bh, bh
je 0x100702fe
test dl, 2
je 0x100702f3
cmp dword [esi + 0x38], 0
jne 0x100702f3
mov eax, dword [esi + 0x7c]
cmp ecx, eax
jbe 0x100702f3
sub ecx, eax
cmp ecx, 3
jbe 0x100702f3
mov eax, dword [esi + 0x3c]
mov ecx, 1
test eax, eax
cmovne ecx, eax
mov eax, dword [esi + 0x50]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1122e340]
cvtpd2ps xmm1, xmm0
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x1122e340]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, dword [0x1122d4d0]
jbe 0x100702f3
mov dword [esi + 0x80], 0
mov eax, dword [edi + 0x10]
add eax, 0x7a80
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, esi
call fcn.10070890
test al, al
jne 0x100702dd
mov edx, dword [esi + 0x6c]
test edx, edx
jne 0x10070234
mov eax, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push 0x78000000
push 3
push 1
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x7c]
push eax
push eax
call fcn.10025350
mov eax, dword [esp + 0x78]
lea ecx, [esi + 0x6c]
or byte [esp + 0x84], 4
and eax, 0xffffff
or eax, 0x1000000
mov dword [esp + 0x10], ecx
mov dword [esp + 0x78], eax
mov al, byte [esp + 0x86]
and al, 0xfb
mov byte [esp + 0x86], al
test bl, bl
jne 0x10070140
or al, 8
mov byte [esp + 0x86], al
lea eax, [esi + 0x6c]
mov dword [esp + 0x10], eax
mov ecx, dword [edi + 0x10]
lea eax, [esp + 0x14]
push esi
push 0x14
add ecx, 0x7a80
mov dword [esp + 0xe8], 0x80
push ecx
push eax
push 0x400000
push 0x800000
lea eax, [esp + 0x30]
mov dword [esp + 0x100], 0x41
push eax
call fcn.100569d0
mov edx, eax
mov dword [esi + 0x6c], edx
test edx, edx
je 0x1007021a
cmp dword [edx + 0xb2], 1
je 0x10070234
mov ecx, dword [edi + 0x10]
push edx
mov eax, dword [ecx + 0x7d14]
add eax, 0xf
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], eax
mov ecx, dword [edi + 0x10]
add ecx, 0x7a80
call fcn.1001dc90
mov ebx, dword [esp + 0x10]
mov ecx, dword [ebx]
test ecx, ecx
je 0x100701d0
push ecx
call fcn.1001d530
mov eax, dword [esi + 0x68]
mov dword [ebx], 0
lea ecx, [eax + 0x4000]
xor ecx, eax
and ecx, 0x3fc000
xor ecx, eax
mov eax, ecx
mov dword [esi + 0x68], ecx
and eax, 0x3fc000
cmp eax, 0x28000
jbe 0x100702e1
add dword [esi + 0x7c], 0x12c
add dword [esi + 0x78], 0x12c
and ecx, 0xffc03fff
mov dword [esi + 0x68], ecx
jmp 0x100702e1
mov eax, dword [edi + 0x10]
mov eax, dword [eax + 0x7d14]
add eax, 0xf
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], eax
jmp 0x100702e1
or byte [edx + 0x28], 2
test bh, bh
jne 0x1007028c
test bl, bl
je 0x100702dd
mov ecx, dword [esi + 0x1c]
push 0
call fcn.1004ddf0
mov ecx, dword [esi + 0x6c]
push 1
call fcn.1004ddf0
mov eax, dword [esi + 0x6c]
mov edx, dword [eax + 8]
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax + 8]
lea eax, [edx + 8]
neg edx
push ecx
sbb edx, edx
and edx, eax
lea eax, [ecx + 8]
neg ecx
sbb ecx, ecx
and ecx, eax
call fcn.1005d7c0
mov ecx, dword [esi + 0x6c]
call fcn.1004de50
mov ecx, dword [esi + 0x1c]
call fcn.1004de50
mov eax, dword [esi + 0x6c]
mov edx, dword [esi + 0x1c]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x68]
and eax, 0xffffffdf
movzx ecx, bl
shl ecx, 5
or ecx, eax
mov dword [esi + 0x6c], edx
or ecx, 0x10
mov dword [esi + 0x68], ecx
and ecx, 0xffffffbf
mov eax, dword [edi + 0x10]
push edx
mov eax, dword [eax + 0x7d14]
mov dword [esi + 0x68], ecx
mov ecx, esi
mov dword [esi + 0x7c], eax
call fcn.10070310
mov ecx, dword [edi + 0x10]
push esi
add ecx, 0x7a80
call fcn.10055110
jmp 0x100702e1
or dword [esi + 0x68], 0x40
mov eax, dword [edi + 0x10]
add eax, 0x7a80
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
mov eax, 0x80004005
pop ebx
mov esp, ebp
pop ebp
ret 4