Function at 0x10041c00
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 0x1004215c
mov esi, dword [edx + 0xc]
cmp eax, esi
jae 0x1004215c
mov ebx, edx
mov edx, dword [ebp + 0x14]
lea edx, [edx*8]
cmp esi, edx
mov edx, ebx
mov ebx, dword [ebp + 0x14]
jbe 0x1004215c
lea eax, [eax + ebx*8]
cmp eax, esi
ja 0x1004215c
test ebx, ebx
mov dword [esp + 0x2c], ecx
je 0x10042166
mov eax, ebx
lea ecx, [edx + 0x10]
lea esi, [edx + 0x1c]
mov dword [esp + 8], edx
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x6c], esi
mov ecx, dword [edx + 8]
mov dword [esp + 0x84], eax
mov eax, edi
sub eax, ecx
mov dword [esp + 0x50], ecx
jb 0x100421e8
mov esi, dword [edx + 0xc]
cmp eax, esi
jae 0x100421e8
cmp esi, 9
jb 0x100421e8
add eax, 8
cmp eax, esi
ja 0x100421e8
mov ebx, edx
mov edx, dword [ebp + 8]
mov dword [esp + 0x74], 0
mov dword [esp + 0x70], 0
lea ecx, [esp + 0x10]
push 8
lea eax, [esp + 0x74]
push eax
push edi
call fcn.10018780
add esp, 0xc
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x10042174
cmp dword [esp + 0x18], 8
jne 0x10042185
mov edx, dword [esp + 0x74]
mov eax, edx
and eax, 0x7fffffff
cmp esi, eax
jbe 0x100421e8
mov ebx, dword [esp + 0x70]
cmp byte [ebp + 0x10], 0
mov dword [esp + 0x30], eax
mov dword [esp + 0xc], edi
je 0x10041d70
and ebx, 0x7fffffff
cmp esi, ebx
jbe 0x100421e8
add ebx, dword [esp + 0x50]
mov dword [esp + 0x48], edx
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x10]
mov word [esp + 0x4e], 0
push 2
lea eax, [esp + 0x52]
push eax
push ebx
call fcn.10018420
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
test ecx, ecx
jne 0x100421a5
cmp dword [esp + 0x18], 2
jne 0x10041d80
movdqa xmm0, xmmword [0x4516310]
pinsrw xmm0, word [eax], 1
jmp 0x10041d91
mov dword [esp + 0x50], 1
jmp 0x10041e8e
movdqa xmm0, xmmword [esp + 0xa0]
pand xmm0, xmmword [0x4516300]
movd eax, xmm0
test ax, ax
je 0x100421e0
add ebx, 2
movdqa xmmword [esp + 0xa0], xmm0
mov eax, ebx
sub eax, dword [esp + 0x50]
jb 0x100421e8
cmp eax, esi
jae 0x100421e8
movdqa xmm0, xmmword [esp + 0xa0]
pextrw ecx, xmm0, 1
lea edx, [ecx + ecx]
cmp esi, edx
jbe 0x100421e8
lea eax, [eax + ecx*2]
cmp eax, esi
ja 0x100421e8
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.1002c980
cmp al, 8
jne 0x100421f3
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 + 0x10]
push edi
mov dword [esp + 0x54], eax
push eax
push ebx
call fcn.10018420
add esp, 0xc
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x1004218b
cmp dword [esp + 0x18], esi
jne 0x10041e48
mov edi, dword [esp + 0x14]
jmp 0x10041e6e
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x10]
push edi
mov edi, dword [esp + 0x54]
push edi
push ebx
call fcn.10018780
add esp, 0xc
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x1004218b
mov esi, dword [esp + 0x78]
mov ecx, edi
mov edx, esi
call section..rdata
mov ecx, ebx
mov ebx, eax
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x80]
mov dword [esp + 0x50], 0
mov edi, dword [ebp + 0x18]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
not edx
movsd xmm0, qword [esp + 0x88]
shr edx, 0x1f
mov dword [esp + 0x9c], edx
mov dword [esp + 0x3c], edx
mov esi, dword [edi + 4]
movsd qword [esp + 0x94], xmm0
movsd qword [esp + 0x34], xmm0
inc esi
je 0x1004228c
cmp esi, dword [edi + 8]
jbe 0x10041eff
mov ecx, esi
call fcn.1004daa0
cmp eax, esi
jbe 0x10041eee
mov ecx, edi
mov edx, eax
call fcn.1002d820
cmp al, 8
je 0x10041eff
mov ecx, edi
mov edx, esi
call fcn.1002d820
cmp al, 8
jne 0x1004228c
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 + 0x30]
movsd xmm0, qword [esp + 0x34]
movsd qword [edi + eax*8 + 8], xmm0
mov ecx, dword [esp + 0x3c]
mov dword [edi + eax*8 + 0x10], ecx
mov dword [edi + eax*8 + 0x14], ebx
mov dword [edx + 4], esi
mov edx, dword [esp + 8]
je 0x100421e8
cmp dword [edi + eax*8 + 0x10], 0
mov eax, dword [edi + eax*8 + 0x14]
mov ecx, dword [edx + 0xc]
je 0x10042050
cmp ecx, eax
jbe 0x100421e8
cmp ecx, 0x11
jb 0x10042044
mov edx, dword [edx + 8]
lea ebx, [edx + eax]
cmp ebx, edx
jb 0x10042040
add eax, 0x10
cmp eax, ecx
ja 0x10042040
cmp esi, 3
jne 0x10042040
mov eax, dword [esp + 8]
mov ecx, dword [eax + 0x20]
cmp dword [eax], ecx
jbe 0x10042040
mov edx, dword [ebp + 8]
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x3c], 0
push 0xc
lea eax, [esp + 0x38]
push eax
push ebx
call fcn.10018780
add esp, 0xc
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x10042258
cmp dword [esp + 0x18], 0xc
jne 0x100420ab
movsd xmm0, qword [edi + 0x18]
movsd xmm1, qword [edi + 0x20]
lea eax, [esp + 0x1c]
movsd xmm2, qword [esp + 0x34]
mov edx, dword [esp + 8]
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
mov eax, dword [edi]
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x3c]
movsd xmm0, qword [edi + 4]
mov edi, dword [esp + 0x50]
mov dword [esp + 0x48], eax
mov al, 7
inc edi
movsd qword [esp + 0x10], xmm0
jne 0x100420b9
cmp dword [esp + 0x30], 2
mov edi, dword [esp + 0xc]
je 0x10042048
jmp 0x1004226e
mov edx, dword [esp + 8]
mov edi, dword [esp + 0xc]
mov ebx, dword [ebp + 0x18]
jmp 0x10042085
cmp ecx, eax
jbe 0x100421e8
mov ebx, dword [ebp + 0x18]
add eax, dword [edx + 8]
lea ecx, [esp + 0x10]
push ebx
push eax
push dword [ebp + 8]
call fcn.10041ac0
add esp, 0xc
cmp dword [esp + 0x10], 0
mov edi, dword [esp + 0xc]
jne 0x10042246
mov esi, dword [ebx + 4]
mov edx, dword [esp + 8]
mov eax, dword [ebx + 8]
cmp esi, eax
cmovb eax, esi
test eax, eax
je 0x10042095
dec esi
mov dword [ebx + 4], esi
mov eax, dword [esp + 0x84]
add edi, 8
dec eax
jne 0x10041c6c
jmp 0x10042166
mov edx, dword [esp + 8]
mov edi, dword [esp + 0xc]
mov byte [edx + 0x29], 1
jmp 0x10042048
cmp edi, dword [edx + 0x24]
mov ebx, edx
jbe 0x10042104
mov ecx, edi
movaps xmmword [esp + 0x50], xmm2
call fcn.1004daa0
mov ecx, edi
cmp eax, edi
jbe 0x100420ea
mov ecx, dword [esp + 0x6c]
mov edx, eax
call fcn.1002cc70
movaps xmm2, xmmword [esp + 0x50]
mov ecx, edi
mov edx, ebx
cmp al, 8
je 0x10042104
mov edx, ecx
mov ecx, dword [esp + 0x6c]
call fcn.1002cc70
movaps xmm2, xmmword [esp + 0x50]
mov edx, ebx
cmp al, 8
jne 0x1004202a
mov eax, dword [edx + 0x20]
mov ecx, dword [edx + 0x1c]
mov edi, dword [esp + 0x30]
imul edx, eax, 0x2c
inc eax
mov dword [ecx + edx], edi
movsd xmm0, qword [esp + 0x10]
movsd xmm1, qword [esp + 0x18]
movsd qword [ecx + edx + 4], xmm0
movsd qword [ecx + edx + 0xc], xmm1
movsd xmm0, qword [esp + 0x20]
movsd qword [ecx + edx + 0x14], xmm0
mov edi, dword [esp + 0x28]
mov dword [ecx + edx + 0x1c], edi
mov edi, dword [esp + 0x48]
movlps qword [ecx + edx + 0x20], xmm2
mov dword [ecx + edx + 0x28], edi
mov edi, dword [esp + 0xc]
mov edx, ebx
mov dword [ebx + 0x20], eax
jmp 0x10042048
mov word [ecx], 0
jmp 0x1004223e
mov eax, dword [esp + 0x2c]
mov word [eax], 0x100
jmp 0x1004223e
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
jmp 0x10042205
mov byte [ebx + 0x29], 1
jmp 0x100421e8
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], esi
jmp 0x100421f9
movq xmm0, qword [esp + 0x18]
pinsrw xmm1, ecx, 1
shr ecx, 0x10
lea edx, [esp + 0x10]
mov word [esp + 0x16], cx
lea ecx, [esp + 0x38]
mov dword [esp + 0x18], eax
movq qword [esp + 0x1c], xmm0
mov byte [esp + 0x10], 2
movd dword [esp + 0x12], xmm1
call fcn.100486e0
mov eax, dword [esp + 0x38]
jmp 0x100421f9
mov eax, dword [esp + 8]
mov byte [eax + 0x29], 1
mov eax, dword [esp + 0x2c]
mov word [eax], 0
jmp 0x1004223e
mov byte [esp + 0x3c], al
xor eax, eax
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x88], edx
mov dword [esp + 0x8c], esi
mov edx, dword [esp + 0x2c]
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 + 0x14]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
jmp 0x10042277
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov edi, eax
and edi, 0xffffff00
jmp 0x10042272
xor ecx, ecx
xor edi, edi
movzx eax, al
or eax, edi
mov edi, dword [esp + 0x2c]
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 0x1004223e
lea ecx, [esp + 0x10]
mov edx, 0x451b61c
mov dword [esp + 0x10], 0x451b608
mov dword [esp + 0x14], 1
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 0x451d260
mov dword [esp + 0x1c], 0
call fcn.10018a70
ud2