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

Disassembly:
push 0xffffffffffffffff
push 0x13067e50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push esi
push edi
mov edi, ecx
xor esi, esi
push 0x8000
mov dword [esp + 0x24], edi
mov dword [esp + 0xc], esi
call fcn.12e6efc0
add esp, 4
test eax, eax
je 0x12ee1674
push ebx
push ebp
mov ecx, edi
call fcn.12ee0bf0
push 1
push edi
lea ecx, [esp + 0x34]
call fcn.12f560a0
mov dword [esp + 0x50], esi
mov esi, dword [edi + 0x24]
test esi, esi
je 0x12ee165d
mov ebx, dword [edi + 0x28]
cmp ebx, 0x8c
mov dword [esp + 0x1c], ebx
jb 0x12ee165d
mov ebp, dword [esp + 0x5c]
mov ecx, esi
call fcn.12ee09e0
mov ecx, dword [esi + 0x58]
mov edx, dword [esi + 0x80]
shr edx, 1
lea eax, [eax + ecx*4 + 4]
mov ecx, dword [esi + 0x7c]
shr ecx, 1
add edx, ecx
mov ecx, dword [esi + 0x68]
lea edx, [edx + ecx*4]
mov ecx, dword [esi + 0x6c]
shr ecx, 1
add edx, ecx
mov ecx, dword [esi + 0x74]
shr ecx, 1
add edx, ecx
mov ecx, dword [esi + 0x78]
shr ecx, 1
add edx, ecx
shl edx, 1
sub edx, esi
lea edx, [edx + eax + 0xb]
cmp ebx, edx
jb 0x12ee165d
xor edi, edi
mov ecx, 0x131c7b28
mov dword [esp + 0x18], edi
call fcn.12f20200
test eax, eax
je 0x12ee142b
mov eax, dword [esi + 0x40]
test eax, eax
je 0x12ee142b
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x38]
mov edx, dword [esi + 0x28]
shr eax, 1
shr ecx, 1
add eax, ecx
mov ecx, dword [esi + 0x24]
shr edx, 1
add eax, edx
shr ecx, 1
add eax, ecx
mov ecx, 0x131c7b28
lea edx, [esi + eax*2 + 0x94]
push edx
call fcn.12f20210
mov edi, eax
mov dword [esp + 0x18], edi
mov eax, dword [0x13198f68]
test eax, eax
je 0x12ee1458
mov ecx, 0x131c7b28
call fcn.12f20200
push eax
mov eax, dword [esi + 0x40]
push eax
push edi
push 0x131546a8
push str.SCIRule
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x18
mov eax, dword [esi + 0x64]
test eax, eax
ja 0x12ee1467
test edi, edi
je 0x12ee1599
mov eax, dword [esp + 0x60]
test eax, eax
je 0x12ee158f
mov edi, dword [esp + 0x58]
test edi, edi
jne 0x12ee1483
test ebp, ebp
je 0x12ee158f
lea ecx, [esp + 0x38]
call fcn.12f4cba0
mov ecx, dword [esp + 0x3c]
push ebp
push ecx
lea ecx, [esp + 0x40]
mov byte [esp + 0x58], 1
call fcn.12f4d0c0
mov edx, dword [esp + 0x3c]
push edi
push edx
lea ecx, [esp + 0x40]
call fcn.12f4d0c0
mov ecx, esi
call fcn.12ee16c0
mov ecx, dword [esi + 0x28]
mov edi, dword [esi + 0x38]
shr ecx, 1
shr edi, 1
lea edx, [eax + ecx*2 + 2]
mov ecx, esi
mov dword [esp + 0x20], edx
call fcn.12ee16d0
mov ebp, dword [esi + 0x3c]
mov ebx, dword [esi + 0x58]
mov edx, dword [esi + 0x44]
mov ecx, dword [esi + 0x4c]
shr ebp, 1
mov dword [esp + 0x14], ebp
mov ebp, dword [esi + 0x68]
push ebp
mov ebp, dword [esi + 0x50]
lea eax, [eax + edi*2 + 2]
add ebp, ebx
shr edx, 1
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x54]
shr ecx, 1
lea ebp, [edx + ebp*2]
shr eax, 1
add ebp, ecx
add ebp, eax
add ebp, edi
mov edi, dword [esp + 0x18]
add ebp, edi
mov edi, dword [esp + 0x24]
lea edi, [edi + ebp*2 + 0x12]
mov ebp, dword [esi + 0x50]
push edi
mov edi, dword [esi + 0x68]
lea edi, [ebp + edi*2]
mov ebp, dword [esp + 0x1c]
add edi, ebx
lea edx, [edx + edi*2]
add edx, ecx
add edx, eax
mov eax, dword [esp + 0x2c]
add edx, ebp
lea ecx, [eax + edx*2 + 0x11]
mov edx, dword [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x34]
push edx
call fcn.12ee11b0
test eax, eax
jne 0x12ee154f
mov eax, dword [esp + 0x18]
test eax, eax
je 0x12ee1577
lea eax, [esp + 0x38]
push esi
push eax
call fcn.12ee1a30
add esp, 8
test eax, eax
je 0x12ee1577
mov ecx, dword [esp + 0x58]
push esi
push ecx
call fcn.12ee1bd0
add esp, 8
test eax, eax
jne 0x12ee1635
lea ecx, [esp + 0x38]
mov byte [esp + 0x50], 0
call fcn.12f4cbb0
mov ebp, dword [esp + 0x5c]
mov ebx, dword [esp + 0x1c]
jmp 0x12ee1599
test byte [esi + 0x14], 3
jne 0x12ee1655
mov ecx, esi
call fcn.12ee09e0
mov edx, dword [esi + 0x58]
mov ecx, dword [esi + 0x80]
shr ecx, 1
lea eax, [eax + edx*4 + 4]
mov edx, dword [esi + 0x7c]
shr edx, 1
add ecx, edx
mov edx, dword [esi + 0x6c]
shr edx, 1
add ecx, edx
mov edx, dword [esi + 0x74]
shr edx, 1
add ecx, edx
mov edx, dword [esi + 0x78]
shr edx, 1
add ecx, edx
mov edx, dword [esi + 0x68]
neg edx
shl ecx, 1
shl edx, 3
sub edx, ecx
mov ecx, esi
sub edx, eax
add edx, esi
lea ebx, [ebx + edx - 0xb]
mov dword [esp + 0x1c], ebx
call fcn.12ee09a0
mov ecx, dword [esi + 0x54]
mov edx, dword [esi + 0x68]
shr ecx, 1
lea eax, [eax + ecx*2 + 2]
mov ecx, dword [esi + 0x58]
lea edx, [ecx + edx*2]
mov ecx, dword [esi + 0x80]
shr ecx, 1
lea edx, [ecx + edx*2]
mov ecx, dword [esi + 0x7c]
shr ecx, 1
add edx, ecx
mov ecx, dword [esi + 0x6c]
shr ecx, 1
add edx, ecx
mov ecx, dword [esi + 0x74]
shr ecx, 1
add edx, ecx
mov ecx, dword [esi + 0x78]
shr ecx, 1
add edx, ecx
cmp ebx, 0x8c
lea esi, [eax + edx*2 + 0xf]
jae 0x12ee1396
jmp 0x12ee165d
mov edx, dword [esi + 0x14]
lea ecx, [esp + 0x38]
and dl, 3
mov byte [esp + 0x50], 0
neg dl
sbb edx, edx
neg edx
mov dword [esp + 0x10], edx
call fcn.12f4cbb0
jmp 0x12ee165d
mov dword [esp + 0x10], 1
lea ecx, [esp + 0x2c]
mov dword [esp + 0x50], 0xffffffff
call fcn.12f56100
mov esi, dword [esp + 0x10]
pop ebp
pop ebx
mov eax, dword [0x13198f68]
test eax, eax
je 0x12ee16a0
push 0x8000
call fcn.12e6efc0
add esp, 4
push eax
push esi
push 0x13154640
push str.SCIRule
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x14
mov ecx, dword [esp + 0x40]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x44
ret 0xc