Function at 0x10045d00
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 0x1004627a
mov esi, dword [edx + 0xc]
mov ebx, edx
cmp eax, esi
jae 0x1004627a
mov edx, dword [ebp + 0x14]
lea edx, [edx*8]
cmp esi, edx
mov edx, dword [ebp + 0x14]
jbe 0x1004627a
lea eax, [eax + edx*8]
cmp eax, esi
ja 0x1004627a
test edx, edx
mov dword [esp + 0x30], ecx
je 0x10046284
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 0x10046306
mov esi, dword [ebx + 0xc]
cmp eax, esi
jae 0x10046306
cmp esi, 9
jb 0x10046306
add eax, 8
cmp eax, esi
ja 0x10046306
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.100408a0
add esp, 0xc
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x10046292
cmp dword [esp + 0x1c], 8
jne 0x100462a3
mov edx, dword [esp + 0x74]
mov dword [esp + 0xc], edi
mov edi, edx
and edi, 0x7fffffff
cmp esi, edi
jbe 0x10046306
mov ebx, dword [esp + 0x70]
cmp byte [ebp + 0x10], 0
mov dword [esp + 0x34], edi
je 0x10045e60
and ebx, 0x7fffffff
cmp esi, ebx
jbe 0x10046306
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.10040a50
add esp, 0xc
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
test ecx, ecx
jne 0x100462c3
cmp dword [esp + 0x1c], 2
jne 0x10045e70
movdqa xmm0, xmmword [0x370c550]
pinsrw xmm0, word [eax], 1
jmp 0x10045e81
mov dword [esp + 0x50], 1
jmp 0x10045f81
movdqa xmm0, xmmword [esp + 0xa0]
pand xmm0, xmmword [0x370c540]
movd eax, xmm0
test ax, ax
je 0x100462fe
add ebx, 2
movdqa xmmword [esp + 0xa0], xmm0
mov eax, ebx
sub eax, dword [esp + 0x50]
jb 0x10046306
cmp eax, esi
jae 0x10046306
movdqa xmm0, xmmword [esp + 0xa0]
pextrw ecx, xmm0, 1
lea edx, [ecx + ecx]
cmp esi, edx
jbe 0x10046306
lea eax, [eax + ecx*2]
cmp eax, esi
ja 0x10046306
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.1002b4f0
cmp al, 8
jne 0x10046311
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.10040a50
add esp, 0xc
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x100462a9
cmp dword [esp + 0x1c], esi
jne 0x10045f38
mov edi, dword [esp + 0x18]
jmp 0x10045f5e
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x14]
push edi
mov edi, dword [esp + 0x54]
push edi
push ebx
call fcn.100408a0
add esp, 0xc
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x100462a9
mov esi, dword [esp + 0x78]
mov ecx, edi
mov edx, esi
call 0x1006c120
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 0x100463aa
cmp esi, dword [edi + 8]
jbe 0x10045ff2
mov ecx, esi
call fcn.10004c50
cmp eax, esi
jbe 0x10045fe1
mov ecx, edi
mov edx, eax
call fcn.1002c290
cmp al, 8
je 0x10045ff2
mov ecx, edi
mov edx, esi
call fcn.1002c290
cmp al, 8
jne 0x100463aa
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 0x10046306
cmp dword [edi + eax*8 + 0x10], 0
je 0x10046130
mov ecx, dword [edi + eax*8 + 0x14]
mov edx, dword [ebx + 0xc]
cmp edx, ecx
jbe 0x10046306
cmp edx, 0x11
jb 0x1004617b
mov ebx, dword [ebx + 8]
lea eax, [ebx + ecx]
cmp eax, ebx
jb 0x10046177
add ecx, 0x10
cmp ecx, edx
ja 0x10046177
mov ebx, dword [esp + 8]
mov edx, dword [esp + 0x10]
cmp esi, 3
jne 0x100461a7
mov ecx, ebx
mov ebx, dword [ebx + 0x20]
cmp dword [ecx], ebx
jbe 0x100461ad
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.100408a0
add esp, 0xc
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x10046376
cmp dword [esp + 0x1c], 0xc
mov edx, dword [esp + 0x10]
jne 0x100461b7
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 0x100461c5
cmp ecx, 2
mov ebx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
je 0x10046183
jmp 0x1004638c
cmp esi, 3
jae 0x10046306
mov eax, dword [edi + eax*8 + 0x14]
cmp dword [ebx + 0xc], eax
jbe 0x10046306
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.10045bc0
add esp, 0xc
cmp dword [esp + 0x14], 0
mov ecx, dword [esp + 0xc]
jne 0x10046364
mov esi, dword [edi + 4]
mov edx, dword [esp + 0x10]
jmp 0x10046186
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 0x10046196
dec esi
mov dword [edi + 4], esi
mov edi, ecx
add edi, 8
dec edx
jne 0x10045d68
jmp 0x10046284
mov ecx, dword [esp + 0xc]
jmp 0x10046183
mov ebx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
jmp 0x10046183
mov ebx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov byte [ebx + 0x29], 1
jmp 0x10046183
mov eax, dword [esp + 8]
cmp edi, dword [eax + 0x24]
jbe 0x1004621a
mov dword [esp + 0x34], ecx
mov ecx, edi
movaps xmmword [esp + 0x50], xmm2
call fcn.10004c50
cmp eax, edi
jbe 0x100461fa
mov ecx, dword [esp + 0x6c]
mov edx, eax
call fcn.1002b7e0
mov ecx, dword [esp + 0x34]
movaps xmm2, xmmword [esp + 0x50]
cmp al, 8
je 0x1004621a
mov ecx, dword [esp + 0x6c]
mov edx, edi
call fcn.1002b7e0
mov ecx, dword [esp + 0x34]
movaps xmm2, xmmword [esp + 0x50]
mov edx, dword [esp + 0x10]
cmp al, 8
jne 0x1004611b
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 0x10046183
mov word [ecx], 0
jmp 0x1004635c
mov eax, dword [esp + 0x30]
mov word [eax], 0x100
jmp 0x1004635c
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
jmp 0x10046323
mov byte [ebx + 0x29], 1
jmp 0x10046306
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 0x10046317
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.1005c300
mov eax, dword [esp + 0x3c]
jmp 0x10046317
mov eax, dword [esp + 8]
mov byte [eax + 0x29], 1
mov eax, dword [esp + 0x30]
mov word [eax], 0
jmp 0x1004635c
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 0x10046395
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov edi, eax
and edi, 0xffffff00
jmp 0x10046390
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 0x1004635c
lea ecx, [esp + 0x14]
mov edx, 0x371367c
mov dword [esp + 0x14], 0x3713668
mov dword [esp + 0x18], 1
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], 0x3715820
mov dword [esp + 0x20], 0
call fcn.100087c0
ud2