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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xc0
mov edi, dword [ebp + 0xc]
mov eax, edi
sub eax, dword [edx + 8]
jb 0x10046e4a
mov esi, dword [edx + 0xc]
mov ebx, edx
cmp eax, esi
jae 0x10046e4a
mov edx, dword [ebp + 0x14]
lea edx, [edx*8]
cmp esi, edx
mov edx, dword [ebp + 0x14]
jbe 0x10046e4a
lea eax, [eax + edx*8]
cmp eax, esi
ja 0x10046e4a
test edx, edx
mov dword [esp + 0x30], ecx
je 0x10046e54
lea eax, [ebx + 0x10]
lea ecx, [ebx + 0x1c]
mov dword [esp + 8], ebx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x6c], ecx
mov ecx, dword [ebx + 8]
mov eax, edi
sub eax, ecx
mov dword [esp + 0x50], ecx
jb 0x10046ed6
mov esi, dword [ebx + 0xc]
cmp eax, esi
jae 0x10046ed6
cmp esi, 9
jb 0x10046ed6
add eax, 8
cmp eax, esi
ja 0x10046ed6
mov dword [esp + 0x10], edx
mov edx, dword [ebp + 8]
mov dword [esp + 0x74], 0
mov dword [esp + 0x70], 0
lea ecx, [esp + 0x14]
push 8
lea eax, [esp + 0x74]
push eax
push edi
call fcn.10041180
add esp, 0xc
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x10046e62
cmp dword [esp + 0x1c], 8
jne 0x10046e73
mov edx, dword [esp + 0x74]
mov dword [esp + 0xc], edi
mov edi, edx
and edi, 0x7fffffff
cmp esi, edi
jbe 0x10046ed6
mov ebx, dword [esp + 0x70]
cmp byte [ebp + 0x10], 0
mov dword [esp + 0x34], edi
je 0x10046a30
and ebx, 0x7fffffff
cmp esi, ebx
jbe 0x10046ed6
add ebx, dword [esp + 0x50]
mov dword [esp + 0x84], edx
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x14]
mov word [esp + 0x4e], 0
push 2
lea eax, [esp + 0x52]
push eax
push ebx
call fcn.10041330
add esp, 0xc
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
test ecx, ecx
jne 0x10046e93
cmp dword [esp + 0x1c], 2
jne 0x10046a40
movdqa xmm0, xmmword [0x37fa510]
pinsrw xmm0, word [eax], 1
jmp 0x10046a51
mov dword [esp + 0x50], 1
jmp 0x10046b51
movdqa xmm0, xmmword [esp + 0xa0]
pand xmm0, xmmword [0x37fa500]
movd eax, xmm0
test ax, ax
je 0x10046ece
add ebx, 2
movdqa xmmword [esp + 0xa0], xmm0
mov eax, ebx
sub eax, dword [esp + 0x50]
jb 0x10046ed6
cmp eax, esi
jae 0x10046ed6
movdqa xmm0, xmmword [esp + 0xa0]
pextrw ecx, xmm0, 1
lea edx, [ecx + ecx]
cmp esi, edx
jbe 0x10046ed6
lea eax, [eax + ecx*2]
cmp eax, esi
ja 0x10046ed6
mov edi, dword [esp + 8]
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x80], edx
mov esi, dword [edi + 4]
cmp edx, esi
cmovb esi, edx
mov edx, esi
call fcn.10028e10
cmp al, 8
jne 0x10046ee1
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x10]
mov edi, dword [edi + 0x18]
mov edx, dword [ebp + 8]
cmp ecx, edi
mov dword [esp + 0x78], ecx
cmovb edi, ecx
lea ecx, [esp + 0x14]
push edi
mov dword [esp + 0x54], eax
push eax
push ebx
call fcn.10041330
add esp, 0xc
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x10046e79
cmp dword [esp + 0x1c], esi
jne 0x10046b08
mov edi, dword [esp + 0x18]
jmp 0x10046b2e
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x14]
push edi
mov edi, dword [esp + 0x54]
push edi
push ebx
call fcn.10041180
add esp, 0xc
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x10046e79
mov esi, dword [esp + 0x78]
mov ecx, edi
mov edx, esi
call 0x1006a150
mov edx, dword [esp + 0x84]
mov esi, dword [esp + 0x80]
mov ecx, ebx
mov ebx, eax
mov dword [esp + 0x50], 0
mov edi, dword [ebp + 0x18]
mov dword [esp + 0x8c], esi
mov dword [esp + 0x88], ecx
not edx
movsd xmm0, qword [esp + 0x88]
shr edx, 0x1f
mov dword [esp + 0x9c], edx
mov dword [esp + 0x40], edx
mov esi, dword [edi + 4]
movsd qword [esp + 0x94], xmm0
movsd qword [esp + 0x38], xmm0
inc esi
je 0x10046f7a
cmp esi, dword [edi + 8]
jbe 0x10046bc2
mov ecx, esi
call fcn.1002efb0
cmp eax, esi
jbe 0x10046bb1
mov ecx, edi
mov edx, eax
call fcn.10029f20
cmp al, 8
je 0x10046bc2
mov ecx, edi
mov edx, esi
call fcn.10029f20
cmp al, 8
jne 0x10046f7a
mov edx, edi
mov edi, dword [edi]
mov ecx, dword [esp + 0x50]
mov esi, dword [edx + 4]
lea eax, [esi + esi*2]
inc esi
mov dword [edi + eax*8], ecx
mov dword [edi + eax*8 + 4], ebx
mov ebx, dword [esp + 0x34]
movsd xmm0, qword [esp + 0x38]
movsd qword [edi + eax*8 + 8], xmm0
mov ecx, dword [esp + 0x40]
mov dword [edi + eax*8 + 0x10], ecx
mov dword [edi + eax*8 + 0x14], ebx
mov ebx, dword [esp + 8]
mov dword [edx + 4], esi
je 0x10046ed6
cmp dword [edi + eax*8 + 0x10], 0
je 0x10046d00
mov ecx, dword [edi + eax*8 + 0x14]
mov edx, dword [ebx + 0xc]
cmp edx, ecx
jbe 0x10046ed6
cmp edx, 0x11
jb 0x10046d4b
mov ebx, dword [ebx + 8]
lea eax, [ebx + ecx]
cmp eax, ebx
jb 0x10046d47
add ecx, 0x10
cmp ecx, edx
ja 0x10046d47
mov ebx, dword [esp + 8]
mov edx, dword [esp + 0x10]
cmp esi, 3
jne 0x10046d77
mov ecx, ebx
mov ebx, dword [ebx + 0x20]
cmp dword [ecx], ebx
jbe 0x10046d7d
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x14]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x40], 0
push 0xc
lea ebx, [esp + 0x3c]
push ebx
push eax
call fcn.10041180
add esp, 0xc
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x10046f46
cmp dword [esp + 0x1c], 0xc
mov edx, dword [esp + 0x10]
jne 0x10046d87
movsd xmm0, qword [edi + 0x18]
movsd xmm1, qword [edi + 0x20]
lea eax, [esp + 0x20]
movsd xmm2, qword [esp + 0x38]
mov ebx, dword [esp + 0x40]
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
mov eax, dword [edi + 0xc]
mov ecx, dword [edi]
mov dword [esp + 0x1c], eax
mov al, 7
movsd xmm0, qword [edi + 4]
mov edi, dword [esp + 0x50]
inc edi
movsd qword [esp + 0x14], xmm0
jne 0x10046d95
cmp ecx, 2
mov ebx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
je 0x10046d53
jmp 0x10046f5c
cmp esi, 3
jae 0x10046ed6
mov eax, dword [edi + eax*8 + 0x14]
cmp dword [ebx + 0xc], eax
jbe 0x10046ed6
mov edi, dword [ebp + 0x18]
add eax, dword [ebx + 8]
lea ecx, [esp + 0x14]
mov edx, ebx
push edi
push eax
push dword [ebp + 8]
call fcn.10046790
add esp, 0xc
cmp dword [esp + 0x14], 0
mov ecx, dword [esp + 0xc]
jne 0x10046f34
mov esi, dword [edi + 4]
mov edx, dword [esp + 0x10]
jmp 0x10046d56
mov ebx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov edi, dword [ebp + 0x18]
mov eax, dword [edi + 8]
cmp esi, eax
cmovb eax, esi
test eax, eax
je 0x10046d66
dec esi
mov dword [edi + 4], esi
mov edi, ecx
add edi, 8
dec edx
jne 0x10046938
jmp 0x10046e54
mov ecx, dword [esp + 0xc]
jmp 0x10046d53
mov ebx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
jmp 0x10046d53
mov ebx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov byte [ebx + 0x29], 1
jmp 0x10046d53
mov eax, dword [esp + 8]
cmp edi, dword [eax + 0x24]
jbe 0x10046dea
mov dword [esp + 0x34], ecx
mov ecx, edi
movaps xmmword [esp + 0x50], xmm2
call fcn.1002efb0
cmp eax, edi
jbe 0x10046dca
mov ecx, dword [esp + 0x6c]
mov edx, eax
call fcn.10029400
mov ecx, dword [esp + 0x34]
movaps xmm2, xmmword [esp + 0x50]
cmp al, 8
je 0x10046dea
mov ecx, dword [esp + 0x6c]
mov edx, edi
call fcn.10029400
mov ecx, dword [esp + 0x34]
movaps xmm2, xmmword [esp + 0x50]
mov edx, dword [esp + 0x10]
cmp al, 8
jne 0x10046ceb
mov dword [esp + 0x50], ebx
mov ebx, dword [esp + 8]
mov edi, ecx
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x1c]
imul edx, eax, 0x2c
inc eax
mov dword [ecx + edx], edi
movsd xmm0, qword [esp + 0x14]
movsd xmm1, qword [esp + 0x1c]
movsd qword [ecx + edx + 4], xmm0
movsd qword [ecx + edx + 0xc], xmm1
movsd xmm0, qword [esp + 0x24]
movsd qword [ecx + edx + 0x14], xmm0
mov edi, dword [esp + 0x2c]
mov dword [ecx + edx + 0x1c], edi
mov edi, dword [esp + 0x50]
movlps qword [ecx + edx + 0x20], xmm2
mov dword [ecx + edx + 0x28], edi
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov dword [ebx + 0x20], eax
jmp 0x10046d53
mov word [ecx], 0
jmp 0x10046f2c
mov eax, dword [esp + 0x30]
mov word [eax], 0x100
jmp 0x10046f2c
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
jmp 0x10046ef3
mov byte [ebx + 0x29], 1
jmp 0x10046ed6
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x40], edx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x44], esi
jmp 0x10046ee7
movq xmm0, qword [esp + 0x1c]
pinsrw xmm1, ecx, 1
shr ecx, 0x10
lea edx, [esp + 0x14]
mov word [esp + 0x1a], cx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x1c], eax
movq qword [esp + 0x20], xmm0
mov byte [esp + 0x14], 2
movd dword [esp + 0x16], xmm1
call fcn.10062a00
mov eax, dword [esp + 0x3c]
jmp 0x10046ee7
mov eax, dword [esp + 8]
mov byte [eax + 0x29], 1
mov eax, dword [esp + 0x30]
mov word [eax], 0
jmp 0x10046f2c
mov byte [esp + 0x40], al
xor eax, eax
mov edx, dword [esp + 0x40]
mov esi, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x88], edx
mov dword [esp + 0x8c], esi
mov edx, dword [esp + 0x30]
mov dword [esp + 0x9c], ecx
movsd xmm0, qword [esp + 0x88]
mov dword [edx + 0x10], ecx
movsd qword [edx + 8], xmm0
mov dword [edx + 4], eax
movsd qword [esp + 0x94], xmm0
mov byte [edx], 1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
jmp 0x10046f65
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov edi, eax
and edi, 0xffffff00
jmp 0x10046f60
xor ecx, ecx
xor edi, edi
movzx eax, al
or eax, edi
mov edi, dword [esp + 0x30]
mov dword [edi + 4], ecx
mov dword [edi + 8], eax
mov dword [edi + 0xc], esi
mov dword [edi + 0x10], edx
mov byte [edi], 1
jmp 0x10046f2c
lea ecx, [esp + 0x14]
mov edx, 0x3801c30
mov dword [esp + 0x14], 0x3801c1c
mov dword [esp + 0x18], 1
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], 0x38034c8
mov dword [esp + 0x20], 0
call fcn.100063c0
ud2