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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x78
mov eax, dword [0x10113900]
xor eax, esp
mov dword [esp + 0x74], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], edi
mov ecx, dword [esi + 4]
mov dword [esp + 0x14], esi
mov eax, dword [edi]
mov dword [esp + 0x5c], eax
mov eax, dword [edi + 4]
mov byte [esp + 0x50], 0
mov dword [esp + 0x68], 2
mov dword [esp + 0x4c], eax
mov dword [esp + 0x60], eax
cmp ecx, eax
je 0x100468af
test eax, eax
je 0x1004686e
cmp eax, 0x2aaaaaaa
jg 0x10046d4f
lea edx, [eax + eax*2]
lea eax, [ecx + ecx*2]
mov dword [esp + 0x10], edx
cmp edx, eax
je 0x100468a6
mov eax, dword [esi]
test eax, eax
je 0x10046891
push dword [eax - 4]
call fcn.10080ff6
mov edx, dword [esp + 0x14]
add esp, 4
test edx, edx
jle 0x100468a0
mov ecx, edx
call fcn.10027f30
mov dword [esi], eax
jmp 0x100468a6
mov dword [esi], 0
mov eax, dword [esp + 0x4c]
mov ecx, eax
mov dword [esi + 4], eax
mov eax, dword [esi]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], eax
lea eax, [esp + 0x54]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x20], eax
lea eax, [esp + 0xf]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], esi
lea esi, [ecx + ecx*2]
mov eax, esi
mov dword [esp + 0x58], ecx
cdq
xor ecx, ecx
sub eax, edx
mov edx, eax
and edx, 0xfffffffe
test edx, edx
jle 0x1004690d
mov edi, dword [esp + 0x4c]
mov eax, dword [esp + 0x5c]
movups xmm0, xmmword [eax + ecx*8]
movups xmmword [edi + ecx*8], xmm0
add ecx, 2
cmp ecx, edx
jge 0x10046909
mov edi, dword [esp + 0x54]
jmp 0x100468f0
mov edi, dword [esp + 0x18]
push esi
lea ecx, [esp + 0x20]
call fcn.1004bcc0
mov esi, dword [edi + 4]
add esp, 4
test esi, esi
je 0x1004692d
cmp esi, 0x2aaaaaaa
jg 0x10046d54
mov edx, dword [esp + 0x14]
lea ecx, [esi + esi*2]
mov eax, dword [edx + 4]
lea eax, [eax + eax*2]
cmp ecx, eax
je 0x1004696d
mov eax, dword [edx]
test eax, eax
je 0x10046956
push dword [eax - 4]
call fcn.10080ff6
mov edx, dword [esp + 0x18]
lea ecx, [esi + esi*2]
add esp, 4
test ecx, ecx
jle 0x10046967
call fcn.10027f30
mov edx, dword [esp + 0x14]
mov dword [edx], eax
jmp 0x1004696d
mov dword [edx], 0
xor eax, eax
mov dword [edx + 4], esi
mov esi, dword [edi + 4]
mov dword [esp + 0x10], eax
nop dword [eax]
xor edi, edi
test esi, esi
jle 0x100469c7
mov eax, dword [esp + 0x18]
nop word [eax + eax]
mov ecx, dword [eax]
mov eax, dword [esp + 0x14]
imul esi, dword [esp + 0x10]
mov edx, dword [edx]
mov eax, dword [eax + 4]
imul eax, dword [esp + 0x10]
add esi, edi
movsd xmm0, qword [ecx + esi*8]
add eax, edi
inc edi
movsd qword [edx + eax*8], xmm0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov esi, dword [eax + 4]
cmp edi, esi
jl 0x10046990
mov eax, dword [esp + 0x10]
inc eax
mov edi, esi
mov dword [esp + 0x10], eax
cmp eax, 3
jl 0x10046980
cmp dword [esp + 0x68], 1
mov eax, edi
mov ecx, 3
cmove eax, ecx
mov dword [esp + 0x10], eax
test edi, edi
je 0x100469f6
cmp edi, 0x2aaaaaaa
jg 0x10046d54
mov esi, dword [esp + 0x2c]
lea ecx, [edi + edi*2]
mov eax, dword [esi + 4]
imul eax, dword [esi + 8]
cmp ecx, eax
je 0x10046a2f
mov eax, dword [esi]
test eax, eax
je 0x10046a1c
push dword [eax - 4]
call fcn.10080ff6
add esp, 4
lea ecx, [edi + edi*2]
test ecx, ecx
jle 0x10046a29
call fcn.10027f80
mov dword [esi], eax
jmp 0x10046a2f
mov dword [esi], 0
cmp dword [esp + 0x68], 1
mov dword [esi + 4], edi
mov dword [esi + 8], 3
mov eax, dword [esi]
jne 0x10046aa5
shl edi, 2
mov ecx, 3
nop word [eax + eax]
mov dword [eax], 0
add eax, edi
sub ecx, 1
jne 0x10046a50
mov eax, dword [esi]
mov ecx, dword [esi + 8]
add eax, 4
mov edx, dword [esi + 4]
test ecx, ecx
jle 0x10046a7d
shl edx, 2
nop
mov dword [eax], 1
add eax, edx
sub ecx, 1
jne 0x10046a70
mov eax, dword [esi]
mov ecx, dword [esi + 8]
add eax, 8
mov edx, dword [esi + 4]
test ecx, ecx
jle 0x10046d00
shl edx, 2
mov dword [eax], 2
add eax, edx
sub ecx, 1
jne 0x10046a93
jmp 0x10046d00
mov dword [esp + 0x3c], esi
lea ecx, [esp + 0x5c]
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x54]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0xf]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], eax
mov esi, edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], edi
mov dword [esp + 0x54], 0
mov dword [esp + 0x5c], eax
mov dword [esp + 0x64], edi
mov dword [esp + 0x28], ecx
test al, 3
jne 0x10046b08
shr eax, 2
neg eax
and eax, 3
cmp eax, edi
cmovl esi, eax
mov eax, edi
lea ecx, [esp + 0x1c]
sub eax, esi
cdq
and edx, 3
add eax, edx
xor edx, edx
sar eax, 2
push esi
lea eax, [esi + eax*4]
mov dword [esp + 0x50], eax
call fcn.1005c1d0
mov ecx, dword [esp + 0x50]
add esp, 4
cmp esi, ecx
jge 0x10046b5a
nop dword [eax]
nop word [eax + eax]
movd xmm0, dword [esp + 0x54]
mov eax, dword [esp + 0x5c]
pshufd xmm0, xmm0, 0
movups xmmword [eax + esi*4], xmm0
add esi, 4
cmp esi, ecx
jl 0x10046b40
mov edx, ecx
lea ecx, [esp + 0x1c]
push edi
call fcn.1005c1d0
mov edi, dword [esp + 0x30]
lea edx, [esp + 0x60]
mov dword [esp + 0x20], edx
add esp, 4
lea edx, [esp + 0x54]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x20], edx
lea edx, [esp + 0xf]
mov ecx, dword [edi + 4]
mov esi, ecx
mov eax, dword [edi]
mov dword [esp + 0x24], edx
lea edx, [esp + 0x30]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x34], ecx
lea eax, [eax + ecx*4]
mov dword [esp + 0x40], 0
mov dword [esp + 0x30], eax
mov dword [esp + 0x44], 1
mov dword [esp + 0x48], ecx
mov dword [esp + 0x54], 1
mov dword [esp + 0x5c], eax
mov dword [esp + 0x64], ecx
mov dword [esp + 0x28], edx
test al, 3
jne 0x10046bdc
shr eax, 2
neg eax
and eax, 3
cmp eax, ecx
cmovl esi, eax
mov eax, ecx
lea ecx, [esp + 0x1c]
sub eax, esi
cdq
and edx, 3
add eax, edx
xor edx, edx
sar eax, 2
push esi
lea eax, [esi + eax*4]
mov dword [esp + 0x50], eax
call fcn.1005c1d0
mov ecx, dword [esp + 0x50]
add esp, 4
cmp esi, ecx
jge 0x10046c2a
nop word [eax + eax]
movd xmm0, dword [esp + 0x54]
mov eax, dword [esp + 0x5c]
pshufd xmm0, xmm0, 0
movups xmmword [eax + esi*4], xmm0
add esi, 4
cmp esi, ecx
jl 0x10046c10
push dword [esp + 0x18]
mov edx, ecx
lea ecx, [esp + 0x20]
call fcn.1005c1d0
mov ecx, dword [edi + 4]
lea edx, [esp + 0x60]
mov eax, dword [edi]
add esp, 4
mov dword [esp + 0x1c], edx
mov esi, ecx
lea edx, [esp + 0x54]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x20], edx
lea edx, [esp + 0xf]
lea eax, [eax + ecx*8]
mov dword [esp + 0x24], edx
mov dword [esp + 0x30], eax
lea edx, [esp + 0x30]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 2
mov dword [esp + 0x48], ecx
mov dword [esp + 0x54], 2
mov dword [esp + 0x5c], eax
mov dword [esp + 0x64], ecx
mov dword [esp + 0x28], edx
test al, 3
jne 0x10046cab
shr eax, 2
neg eax
and eax, 3
cmp eax, ecx
cmovl esi, eax
mov eax, ecx
lea ecx, [esp + 0x1c]
sub eax, esi
cdq
and edx, 3
add eax, edx
xor edx, edx
sar eax, 2
push esi
lea edi, [esi + eax*4]
call fcn.1005c1d0
add esp, 4
cmp esi, edi
jge 0x10046cea
nop
movd xmm0, dword [esp + 0x54]
mov eax, dword [esp + 0x5c]
pshufd xmm0, xmm0, 0
movups xmmword [eax + esi*4], xmm0
add esi, 4
cmp esi, edi
jl 0x10046cd0
push dword [esp + 0x4c]
mov edx, edi
lea ecx, [esp + 0x20]
call fcn.1005c1d0
mov esi, dword [esp + 0x30]
add esp, 4
mov eax, dword [esp + 0x14]
sub esp, 8
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x78], eax
lea eax, [esp + 0x70]
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x58]
mov dword [esp + 0x80], eax
lea eax, [esp + 0x74]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x78], esi
call fcn.10051d90
mov ecx, dword [esp + 0x88]
add esp, 0xc
pop edi
pop esi
xor ecx, esp
call fcn.1006f8b7
mov esp, ebp
pop ebp
ret
call fcn.10002cb0
call fcn.10002cb0
int3