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

Disassembly:
sub esp, 0x4c
mov eax, dword [esp + 0x50]
push ebx
mov ebx, dword [esp + 0x58]
push ebp
mov cl, byte [eax]
inc eax
push esi
push edi
xor edi, edi
mov dword [esp + 0x10], 0
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], eax
push 0xa
cmp cl, 0x4a
jne 0x1003ff6a
lea ecx, [esp + 0x64]
push ecx
push eax
call fcn.10052e97
mov ebp, eax
jmp 0x1003ffd5
cmp cl, 0x4d
lea ecx, [esp + 0x64]
push ecx
push eax
jne 0x1003ffca
call fcn.10052e97
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x1c], eax
inc ecx
push 0xa
lea eax, [esp + 0x70]
mov dword [esp + 0x70], ecx
push eax
push ecx
call fcn.10052e97
mov ecx, dword [esp + 0x78]
mov esi, eax
push 0xa
lea eax, [esp + 0x7c]
mov dword [esp + 0x80], esi
inc ecx
push eax
push ecx
mov dword [esp + 0x84], ecx
call fcn.10052e97
add esp, 0x24
mov ebp, eax
cmp esi, 5
jne 0x1003ffd8
mov dword [esp + 0x64], 0xffffffff
jmp 0x1003ffd8
call fcn.10052e97
lea ebp, [eax + 0x3e9]
add esp, 0xc
lea eax, [esp + 0x14]
push eax
call fcn.100316f0
mov esi, dword [esp + 0x6c]
add esp, 4
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [esi + 0x10], xmm0
mov eax, dword [eax + 0x20]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x60]
mov dword [esi + 0xc], 2
cmp byte [eax], 0x2f
jne 0x10040067
push 0xa
lea ecx, [esp + 0x64]
inc eax
push ecx
push eax
mov dword [esp + 0x6c], eax
call fcn.10052e97
mov dword [esi + 0xc], eax
add esp, 0xc
mov eax, dword [esp + 0x60]
cmp byte [eax], 0x3a
jne 0x10040067
push 0xa
lea ecx, [esp + 0x64]
inc eax
push ecx
push eax
mov dword [esp + 0x6c], eax
call fcn.10052e97
mov dword [esi + 0x10], eax
add esp, 0xc
mov eax, dword [esp + 0x60]
cmp byte [eax], 0x3a
jne 0x10040067
push 0xa
lea ecx, [esp + 0x64]
inc eax
push ecx
push eax
mov dword [esp + 0x6c], eax
call fcn.10052e97
add esp, 0xc
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
test eax, eax
js 0x10040073
cmp eax, 0x17
jle 0x100400e3
mov ecx, 0x18
cdq
idiv ecx
mov ecx, edx
mov edx, eax
add ebp, edx
mov dword [esp + 0x68], edx
mov dword [esi + 0xc], ecx
test ecx, ecx
jns 0x10040095
add ecx, 0x18
add ebp, 6
mov dword [esi + 0xc], ecx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100400e3
mov ecx, dword [esp + 0x64]
cmp ecx, 0xffffffff
jne 0x100400bc
push 1
push eax
call fcn.100310c0
mov edi, dword [esp + 0x70]
add esp, 8
add edi, 0xfffffff9
add edi, eax
jmp 0x100400ca
lea edi, [ecx*8]
sub edi, ecx
add edi, 0xfffffffa
add edi, edx
push ebx
mov dword [esp + 0x68], 0
call fcn.10035c80
add esp, 4
mov dword [ebx], 6
jmp 0x100400fc
push ebx
call fcn.10035c80
add esp, 4
mov dword [ebx], 6
cmp dword [esp + 0x10], edi
je 0x1004019f
mov eax, dword [esp + 0x64]
cdq
mov esi, eax
mov eax, 0x92492493
xor esi, edx
sub esi, edx
imul ebp
shl esi, 3
add edx, ebp
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
lea eax, [ecx*8]
sub eax, ecx
sub esi, eax
lea eax, [esi + 1]
add eax, ebp
mov ecx, eax
movzx edx, ax
neg ecx
cmp dword [esp + 0x64], 0
movzx eax, cx
cmovl edx, eax
mov eax, dword [esp + 0x10]
mov word [ebx + 0x15c], dx
mov word [ebx + 0x814], ax
test edi, edi
je 0x100401ff
mov word [ebx + 0x460], di
inc edi
mov word [ebx + 0x462], di
inc edi
mov word [ebx + 0x464], di
inc edi
mov word [ebx + 0x466], di
inc edi
mov word [ebx + 0x468], di
inc edi
movzx eax, di
pop edi
mov word [ebx + 0x46a], ax
inc eax
pop esi
mov word [ebx + 0x46c], ax
mov eax, dword [esp + 0x58]
pop ebp
pop ebx
add esp, 0x4c
ret
cmp ebp, 0x3e8
jle 0x100401c0
pop edi
lea eax, [ebp - 0x3e8]
pop esi
mov word [ebx + 0x4a0], ax
mov eax, dword [esp + 0x58]
pop ebp
pop ebx
add esp, 0x4c
ret
push 1
lea eax, [esp + 0x3c]
push ebp
push eax
call fcn.10031120
add esp, 0xc
movups xmm0, xmmword [eax + 0x10]
movups xmm1, xmmword [eax]
movups xmmword [esp + 0x24], xmm0
movaps xmm0, xmm1
psrldq xmm1, 8
psrldq xmm0, 4
movd eax, xmm0
mov word [ebx + 0x814], ax
movd eax, xmm1
mov word [ebx + 0x460], ax
mov eax, dword [esp + 0x60]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret