Function at 0x10045d60
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 0x100462da
mov esi, dword [edx + 0xc]
mov ebx, edx
cmp eax, esi
jae 0x100462da
mov edx, dword [ebp + 0x14]
lea edx, [edx*8]
cmp esi, edx
mov edx, dword [ebp + 0x14]
jbe 0x100462da
lea eax, [eax + edx*8]
cmp eax, esi
ja 0x100462da
test edx, edx
mov dword [esp + 0x30], ecx
je 0x100462e4
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 0x10046366
mov esi, dword [ebx + 0xc]
cmp eax, esi
jae 0x10046366
cmp esi, 9
jb 0x10046366
add eax, 8
cmp eax, esi
ja 0x10046366
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.10041130
add esp, 0xc
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x100462f2
cmp dword [esp + 0x1c], 8
jne 0x10046303
mov edx, dword [esp + 0x74]
mov dword [esp + 0xc], edi
mov edi, edx
and edi, 0x7fffffff
cmp esi, edi
jbe 0x10046366
mov ebx, dword [esp + 0x70]
cmp byte [ebp + 0x10], 0
mov dword [esp + 0x34], edi
je 0x10045ec0
and ebx, 0x7fffffff
cmp esi, ebx
jbe 0x10046366
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.100412e0
add esp, 0xc
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
test ecx, ecx
jne 0x10046323
cmp dword [esp + 0x1c], 2
jne 0x10045ed0
movdqa xmm0, xmmword [0x3f9e540]
pinsrw xmm0, word [eax], 1
jmp 0x10045ee1
mov dword [esp + 0x50], 1
jmp 0x10045fe1
movdqa xmm0, xmmword [esp + 0xa0]
pand xmm0, xmmword [0x3f9e530]
movd eax, xmm0
test ax, ax
je 0x1004635e
add ebx, 2
movdqa xmmword [esp + 0xa0], xmm0
mov eax, ebx
sub eax, dword [esp + 0x50]
jb 0x10046366
cmp eax, esi
jae 0x10046366
movdqa xmm0, xmmword [esp + 0xa0]
pextrw ecx, xmm0, 1
lea edx, [ecx + ecx]
cmp esi, edx
jbe 0x10046366
lea eax, [eax + ecx*2]
cmp eax, esi
ja 0x10046366
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.1002ac00
cmp al, 8
jne 0x10046371
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.100412e0
add esp, 0xc
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x10046309
cmp dword [esp + 0x1c], esi
jne 0x10045f98
mov edi, dword [esp + 0x18]
jmp 0x10045fbe
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x14]
push edi
mov edi, dword [esp + 0x54]
push edi
push ebx
call fcn.10041130
add esp, 0xc
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x10046309
mov esi, dword [esp + 0x78]
mov ecx, edi
mov edx, esi
call 0x1006d6b0
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 0x1004640a
cmp esi, dword [edi + 8]
jbe 0x10046052
mov ecx, esi
call fcn.10004f20
cmp eax, esi
jbe 0x10046041
mov ecx, edi
mov edx, eax
call fcn.1002b9a0
cmp al, 8
je 0x10046052
mov ecx, edi
mov edx, esi
call fcn.1002b9a0
cmp al, 8
jne 0x1004640a
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 0x10046366
cmp dword [edi + eax*8 + 0x10], 0
je 0x10046190
mov ecx, dword [edi + eax*8 + 0x14]
mov edx, dword [ebx + 0xc]
cmp edx, ecx
jbe 0x10046366
cmp edx, 0x11
jb 0x100461db
mov ebx, dword [ebx + 8]
lea eax, [ebx + ecx]
cmp eax, ebx
jb 0x100461d7
add ecx, 0x10
cmp ecx, edx
ja 0x100461d7
mov ebx, dword [esp + 8]
mov edx, dword [esp + 0x10]
cmp esi, 3
jne 0x10046207
mov ecx, ebx
mov ebx, dword [ebx + 0x20]
cmp dword [ecx], ebx
jbe 0x1004620d
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.10041130
add esp, 0xc
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x100463d6
cmp dword [esp + 0x1c], 0xc
mov edx, dword [esp + 0x10]
jne 0x10046217
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 0x10046225
cmp ecx, 2
mov ebx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
je 0x100461e3
jmp 0x100463ec
cmp esi, 3
jae 0x10046366
mov eax, dword [edi + eax*8 + 0x14]
cmp dword [ebx + 0xc], eax
jbe 0x10046366
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.10045c20
add esp, 0xc
cmp dword [esp + 0x14], 0
mov ecx, dword [esp + 0xc]
jne 0x100463c4
mov esi, dword [edi + 4]
mov edx, dword [esp + 0x10]
jmp 0x100461e6
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 0x100461f6
dec esi
mov dword [edi + 4], esi
mov edi, ecx
add edi, 8
dec edx
jne 0x10045dc8
jmp 0x100462e4
mov ecx, dword [esp + 0xc]
jmp 0x100461e3
mov ebx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
jmp 0x100461e3
mov ebx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov byte [ebx + 0x29], 1
jmp 0x100461e3
mov eax, dword [esp + 8]
cmp edi, dword [eax + 0x24]
jbe 0x1004627a
mov dword [esp + 0x34], ecx
mov ecx, edi
movaps xmmword [esp + 0x50], xmm2
call fcn.10004f20
cmp eax, edi
jbe 0x1004625a
mov ecx, dword [esp + 0x6c]
mov edx, eax
call fcn.1002aef0
mov ecx, dword [esp + 0x34]
movaps xmm2, xmmword [esp + 0x50]
cmp al, 8
je 0x1004627a
mov ecx, dword [esp + 0x6c]
mov edx, edi
call fcn.1002aef0
mov ecx, dword [esp + 0x34]
movaps xmm2, xmmword [esp + 0x50]
mov edx, dword [esp + 0x10]
cmp al, 8
jne 0x1004617b
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 0x100461e3
mov word [ecx], 0
jmp 0x100463bc
mov eax, dword [esp + 0x30]
mov word [eax], 0x100
jmp 0x100463bc
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
jmp 0x10046383
mov byte [ebx + 0x29], 1
jmp 0x10046366
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 0x10046377
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.1005c340
mov eax, dword [esp + 0x3c]
jmp 0x10046377
mov eax, dword [esp + 8]
mov byte [eax + 0x29], 1
mov eax, dword [esp + 0x30]
mov word [eax], 0
jmp 0x100463bc
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 0x100463f5
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov edi, eax
and edi, 0xffffff00
jmp 0x100463f0
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 0x100463bc
lea ecx, [esp + 0x14]
mov edx, 0x3fa5850
mov dword [esp + 0x14], 0x3fa583c
mov dword [esp + 0x18], 1
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], 0x3fa78d4
mov dword [esp + 0x20], 0
call fcn.10006750
ud2