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

Disassembly:
push esi
push edi
push ebx
sub esp, 0x84
mov edx, 1
mov edi, dword [esp + 0xa4]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0xa8]
mov dword [esp + 0x10], eax
mov eax, dword [edi]
test eax, eax
mov ebx, dword [esp + 0xb8]
mov ecx, dword [ecx]
cmovle eax, edx
test ecx, ecx
mov edi, dword [esp + 0xc0]
cmovle ecx, edx
mov dword [esp + 0x60], ecx
mov ecx, dword [ebx]
mov ebx, dword [esp + 0xbc]
mov esi, dword [esp + 0xa0]
mov edi, dword [edi]
mov ebx, dword [ebx]
test ebx, ebx
mov esi, dword [esi]
cmovle ebx, edx
test edi, edi
mov dword [esp + 0x38], eax
cmovle edi, edx
cmp esi, ecx
mov edx, ecx
cmovl edx, esi
cmp eax, ebx
mov dword [esp + 0x4c], edx
mov edx, ebx
cmovl edx, eax
mov eax, dword [esp + 0x60]
cmp eax, edi
mov dword [esp + 0x34], edi
cmovl edi, eax
mov dword [esp + 0x70], edx
test edi, edi
mov dword [esp + 0x1c], edi
jle 0x418b2b
mov edi, dword [esp + 0x38]
lea eax, [esi*8]
mov edx, edi
imul edx, eax
mov dword [esp + 0x50], eax
lea eax, [ecx*8]
mov dword [esp + 0x28], edx
mov edx, ebx
mov dword [esp + 0x48], eax
imul edx, eax
neg eax
imul eax, ebx
add eax, dword [esp + 0xac]
add eax, edx
mov dword [esp + 0x20], eax
mov eax, esi
mov dword [esp + 0x24], edx
mov edx, esi
neg eax
imul edx, edi
imul eax, edi
mov dword [esp + 0x18], edx
add eax, edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x2c], 0
add eax, dword [edx]
mov edx, ecx
mov dword [esp + 0xc], eax
mov eax, ecx
neg edx
imul eax, ebx
imul edx, ebx
mov dword [esp + 8], eax
add edx, eax
mov eax, dword [esp + 0xb4]
add edx, dword [eax]
mov eax, 0x2aaaaaab
mov dword [esp + 4], edx
mov edx, dword [esp + 0x50]
neg edx
imul edx, edi
add edx, dword [esp + 0x10]
add edx, dword [esp + 0x28]
mov edi, dword [esp + 0x4c]
mov dword [esp], edx
imul edi
mov eax, edi
sar edx, 2
sar eax, 0x1f
sub edx, eax
lea eax, [edi + 1]
cmp dword [esp + 0x70], 0
jle 0x4184ff
mov dword [esp + 0x3c], eax
mov dword [esp + 0x54], edx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], esi
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
xor ecx, ecx
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
imul edx, edi
imul eax, edi
imul esi, edi
mov ebx, dword [esp + 8]
imul ebx, edi
add edx, dword [esp + 0xc]
add eax, dword [esp]
add esi, dword [esp + 0x20]
mov dword [esp + 0x40], eax
mov dword [esp + 0x5c], edx
add ebx, dword [esp + 4]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x70]
mov dword [esp + 0x44], esi
mov dword [esp + 0x2c], edi
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x68]
imul esi, ecx
imul edi, ecx
add esi, dword [esp + 0x5c]
add edi, ebx
cmp esi, edi
jle 0x4184d6
mov esi, dword [esp + 0x50]
mov edi, 1
imul esi, ecx
add esi, dword [esp + 0x40]
mov dword [esp + 0x58], esi
mov esi, dword [esp + 0x48]
imul esi, ecx
add esi, dword [esp + 0x44]
mov dword [0x57c194], edx
test edx, edx
mov dword [0x57c198], edi
mov dword [0x57c19c], edx
mov dword [0x57c1a0], edi
jle 0x4184cc
cmp dword [esp + 0x54], 0
je 0x418c39
xor edi, edi
mov dword [esp + 0x30], ecx
mov eax, edi
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
movsd xmm0, qword [eax + edx]
inc edi
movsd xmm1, qword [eax + edx + 8]
movsd xmm2, qword [eax + edx + 0x10]
movsd xmm3, qword [eax + edx + 0x18]
movsd xmm4, qword [eax + edx + 0x20]
movsd xmm5, qword [eax + edx + 0x28]
movsd xmm6, qword [eax + edx + 0x30]
movsd xmm7, qword [eax + edx + 0x38]
movsd qword [eax + esi], xmm0
movsd qword [eax + esi + 8], xmm1
movsd qword [eax + esi + 0x10], xmm2
movsd qword [eax + esi + 0x18], xmm3
movsd qword [eax + esi + 0x20], xmm4
movsd qword [eax + esi + 0x28], xmm5
movsd qword [eax + esi + 0x30], xmm6
movsd qword [eax + esi + 0x38], xmm7
movsd xmm0, qword [eax + edx + 0x40]
movsd xmm1, qword [eax + edx + 0x48]
movsd xmm2, qword [eax + edx + 0x50]
movsd xmm3, qword [eax + edx + 0x58]
movsd xmm4, qword [eax + edx + 0x60]
movsd xmm5, qword [eax + edx + 0x68]
movsd xmm6, qword [eax + edx + 0x70]
movsd xmm7, qword [eax + edx + 0x78]
movsd qword [eax + esi + 0x40], xmm0
movsd qword [eax + esi + 0x48], xmm1
movsd qword [eax + esi + 0x50], xmm2
movsd qword [eax + esi + 0x58], xmm3
movsd qword [eax + esi + 0x60], xmm4
movsd qword [eax + esi + 0x68], xmm5
movsd qword [eax + esi + 0x70], xmm6
movsd qword [eax + esi + 0x78], xmm7
movsd xmm0, qword [eax + edx + 0x80]
movsd xmm1, qword [eax + edx + 0x88]
movsd xmm2, qword [eax + edx + 0x90]
movsd xmm3, qword [eax + edx + 0x98]
movsd xmm4, qword [eax + edx + 0xa0]
movsd xmm5, qword [eax + edx + 0xa8]
movsd xmm6, qword [eax + edx + 0xb0]
movsd xmm7, qword [eax + edx + 0xb8]
movsd qword [eax + esi + 0x80], xmm0
movsd qword [eax + esi + 0x88], xmm1
movsd qword [eax + esi + 0x90], xmm2
movsd qword [eax + esi + 0x98], xmm3
movsd qword [eax + esi + 0xa0], xmm4
movsd qword [eax + esi + 0xa8], xmm5
movsd qword [eax + esi + 0xb0], xmm6
movsd qword [eax + esi + 0xb8], xmm7
add eax, 0xc0
cmp edi, ecx
jb 0x41832e
mov dword [esp + 0x54], ecx
lea edi, [edi + edi*2]
mov ecx, dword [esp + 0x30]
lea edi, [edi*8 + 1]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x70]
dec edi
cmp edi, edx
jae 0x4184c0
mov eax, dword [esp + 0x58]
movsd xmm0, qword [eax + edi*8]
movsd qword [esi + edi*8], xmm0
inc edi
cmp edi, edx
jb 0x4184ad
mov eax, dword [esp + 0x70]
mov esi, dword [esp + 0x3c]
mov dword [0x57c1a4], esi
jmp 0x4184d6
mov dword [0x57c1a4], 1
inc ecx
cmp ecx, eax
jb 0x4182b8
nop
lea esi, [esi]
mov edi, dword [esp + 0x2c]
inc edi
cmp edi, dword [esp + 0x1c]
jb 0x418273
mov ebx, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
mov esi, dword [esp + 0x6c]
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x68], ecx
shl ecx, 3
mov dword [esp + 8], ecx
neg ecx
mov edx, dword [eax]
lea eax, [esi*8]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x64], ebx
imul ebx, ecx
mov dword [esp], edx
lea eax, [eax + 1]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x54], ecx
mov ecx, edx
imul edx, eax
mov dword [esp + 0x44], ebx
mov ebx, esi
mov dword [esp + 0xc], eax
neg ebx
mov eax, dword [esp + 0x70]
mov edi, dword [esp + 0x14]
imul ecx, ebx
mov edi, dword [edi]
lea edx, [edx + eax + 1]
mov eax, esi
sub edi, esi
imul eax, edx
add edi, ebx
add edi, ecx
mov dword [esp + 0x6c], esi
add edi, ecx
mov esi, dword [esp + 0x64]
add eax, edi
mov dword [esp + 0x78], ebx
mov ebx, esi
mov edi, dword [esp + 0xc]
imul ebx, edi
imul edi, esi
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x70]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x3c], eax
lea edx, [ebx + edx + 1]
mov ebx, dword [esp + 0x44]
mov eax, dword [esp + 8]
imul edx, eax
neg eax
add eax, dword [esp + 0xac]
add ecx, ebx
add eax, ecx
add eax, ebx
mov ebx, dword [esp + 0x68]
mov ecx, ebx
add edx, eax
neg ecx
mov dword [esp + 0x30], edx
mov edx, esi
mov esi, dword [esp + 0x70]
imul edx, ecx
mov dword [esp + 0x74], ecx
lea eax, [edi + esi + 1]
imul eax, ebx
mov edi, dword [esp]
sub edi, ebx
add edi, ecx
add edi, edx
mov ebx, dword [esp + 4]
mov ecx, ebx
add edi, edx
neg ecx
add eax, edi
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x38]
imul eax, ecx
mov edi, dword [esp + 0x20]
imul edi, ebx
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x10]
sub edx, ebx
lea ebx, [ecx + eax]
add edx, ebx
mov dword [esp + 0x24], eax
add edx, eax
mov eax, 0x2aaaaaab
add edi, edx
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x4c]
imul ecx
sar edx, 2
sar ecx, 0x1f
sub edx, ecx
mov ebx, dword [esp + 0x64]
test esi, esi
mov esi, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x48], 0
jle 0x418b2b
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], edx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], esi
mov edi, dword [esp + 0x48]
mov ebx, dword [esp + 0x44]
xor edx, edx
mov esi, dword [esp + 0x40]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
imul ebx, edi
imul esi, edi
imul ecx, edi
imul eax, edi
add ebx, dword [esp + 0x30]
add esi, dword [esp + 0x3c]
add ecx, dword [esp + 0x28]
add eax, dword [esp + 0x20]
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], eax
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], esi
mov dword [esp + 0x48], edi
mov ebx, dword [esp + 0x4c]
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
imul eax, edx
imul ecx, edx
add eax, dword [esp + 0x80]
add ecx, dword [esp + 0x7c]
cmp eax, ecx
jge 0x418b00
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
imul ecx, edx
imul eax, edx
add ecx, dword [esp + 0x58]
add eax, dword [esp + 0x5c]
mov dword [0x57c194], ebx
test ebx, ebx
mov dword [0x57c198], ebx
mov dword [0x57c19c], 1
mov dword [0x57c1a0], 0xffffffff
jle 0x418afa
cmp ebx, 6
jle 0x418928
lea edi, [ecx + ebx*8 - 8]
mov dword [esp + 4], edi
lea esi, [eax + ebx*8 - 8]
mov dword [esp], esi
cmp esi, edi
jbe 0x418734
mov edi, esi
lea esi, [ebx*8]
sub edi, dword [esp + 4]
cmp esi, edi
jl 0x418753
mov esi, dword [esp + 4]
cmp esi, dword [esp]
jbe 0x418928
lea edi, [ebx*8]
sub esi, dword [esp]
cmp esi, edi
jle 0x418928
cmp dword [esp + 0x18], 0
je 0x418c43
xor esi, esi
lea edi, [eax + ebx*8]
mov dword [esp + 8], edi
lea edi, [ecx + ebx*8]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov edx, esi
mov ecx, edi
mov ebx, dword [esp + 8]
mov edi, dword [esp + 0x18]
movsd xmm0, qword [edx + ecx - 8]
inc esi
movsd xmm1, qword [edx + ecx - 0x10]
movsd xmm2, qword [edx + ecx - 0x18]
movsd xmm3, qword [edx + ecx - 0x20]
movsd xmm4, qword [edx + ecx - 0x28]
movsd xmm5, qword [edx + ecx - 0x30]
movsd xmm6, qword [edx + ecx - 0x38]
movsd xmm7, qword [edx + ecx - 0x40]
movsd qword [edx + ebx - 8], xmm0
movsd qword [edx + ebx - 0x10], xmm1
movsd qword [edx + ebx - 0x18], xmm2
movsd qword [edx + ebx - 0x20], xmm3
movsd qword [edx + ebx - 0x28], xmm4
movsd qword [edx + ebx - 0x30], xmm5
movsd qword [edx + ebx - 0x38], xmm6
movsd qword [edx + ebx - 0x40], xmm7
movsd xmm0, qword [edx + ecx - 0x48]
movsd xmm1, qword [edx + ecx - 0x50]
movsd xmm2, qword [edx + ecx - 0x58]
movsd xmm3, qword [edx + ecx - 0x60]
movsd xmm4, qword [edx + ecx - 0x68]
movsd xmm5, qword [edx + ecx - 0x70]
movsd xmm6, qword [edx + ecx - 0x78]
movsd xmm7, qword [edx + ecx - 0x80]
movsd qword [edx + ebx - 0x48], xmm0
movsd qword [edx + ebx - 0x50], xmm1
movsd qword [edx + ebx - 0x58], xmm2
movsd qword [edx + ebx - 0x60], xmm3
movsd qword [edx + ebx - 0x68], xmm4
movsd qword [edx + ebx - 0x70], xmm5
movsd qword [edx + ebx - 0x78], xmm6
movsd qword [edx + ebx - 0x80], xmm7
movsd xmm0, qword [edx + ecx - 0x88]
movsd xmm1, qword [edx + ecx - 0x90]
movsd xmm2, qword [edx + ecx - 0x98]
movsd xmm3, qword [edx + ecx - 0xa0]
movsd xmm4, qword [edx + ecx - 0xa8]
movsd xmm5, qword [edx + ecx - 0xb0]
movsd xmm6, qword [edx + ecx - 0xb8]
nop
movsd xmm7, qword [edx + ecx - 0xc0]
movsd qword [edx + ebx - 0x88], xmm0
movsd qword [edx + ebx - 0x90], xmm1
movsd qword [edx + ebx - 0x98], xmm2
movsd qword [edx + ebx - 0xa0], xmm3
movsd qword [edx + ebx - 0xa8], xmm4
movsd qword [edx + ebx - 0xb0], xmm5
movsd qword [edx + ebx - 0xb8], xmm6
movsd qword [edx + ebx - 0xc0], xmm7
add edx, 0xffffff40
cmp esi, edi
jb 0x41877e
mov dword [esp + 0x18], edi
lea esi, [esi + esi*2]
mov ecx, dword [esp + 0x10]
lea esi, [esi*8 + 1]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x4c]
dec esi
mov edi, esi
neg edi
cmp esi, ebx
jae 0x418919
lea eax, [eax + ebx*8]
lea ecx, [ecx + ebx*8]
movsd xmm0, qword [ecx + edi*8 - 8]
inc esi
movsd qword [eax + edi*8 - 8], xmm0
dec edi
cmp esi, ebx
jb 0x418907
mov dword [0x57c1a4], 0
jmp 0x418b00
cmp dword [esp + 0x18], 0
je 0x418c4d
xor esi, esi
lea edi, [eax + ebx*8]
mov dword [esp + 0xc], edi
lea edi, [ecx + ebx*8]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov edx, esi
mov ecx, edi
mov ebx, dword [esp + 0xc]
mov edi, dword [esp + 0x18]
movsd xmm0, qword [edx + ecx - 8]
inc esi
movsd xmm1, qword [edx + ecx - 0x10]
movsd xmm2, qword [edx + ecx - 0x18]
movsd xmm3, qword [edx + ecx - 0x20]
movsd xmm4, qword [edx + ecx - 0x28]
movsd xmm5, qword [edx + ecx - 0x30]
movsd xmm6, qword [edx + ecx - 0x38]
movsd xmm7, qword [edx + ecx - 0x40]
movsd qword [edx + ebx - 8], xmm0
movsd qword [edx + ebx - 0x10], xmm1
movsd qword [edx + ebx - 0x18], xmm2
movsd qword [edx + ebx - 0x20], xmm3
movsd qword [edx + ebx - 0x28], xmm4
movsd qword [edx + ebx - 0x30], xmm5
movsd qword [edx + ebx - 0x38], xmm6
movsd qword [edx + ebx - 0x40], xmm7
movsd xmm0, qword [edx + ecx - 0x48]
movsd xmm1, qword [edx + ecx - 0x50]
movsd xmm2, qword [edx + ecx - 0x58]
movsd xmm3, qword [edx + ecx - 0x60]
movsd xmm4, qword [edx + ecx - 0x68]
movsd xmm5, qword [edx + ecx - 0x70]
movsd xmm6, qword [edx + ecx - 0x78]
movsd xmm7, qword [edx + ecx - 0x80]
movsd qword [edx + ebx - 0x48], xmm0
movsd qword [edx + ebx - 0x50], xmm1
movsd qword [edx + ebx - 0x58], xmm2
movsd qword [edx + ebx - 0x60], xmm3
movsd qword [edx + ebx - 0x68], xmm4
movsd qword [edx + ebx - 0x70], xmm5
movsd qword [edx + ebx - 0x78], xmm6
movsd qword [edx + ebx - 0x80], xmm7
movsd xmm0, qword [edx + ecx - 0x88]
movsd xmm1, qword [edx + ecx - 0x90]
movsd xmm2, qword [edx + ecx - 0x98]
movsd xmm3, qword [edx + ecx - 0xa0]
movsd xmm4, qword [edx + ecx - 0xa8]
movsd xmm5, qword [edx + ecx - 0xb0]
movsd xmm6, qword [edx + ecx - 0xb8]
nop
movsd xmm7, qword [edx + ecx - 0xc0]
movsd qword [edx + ebx - 0x88], xmm0
movsd qword [edx + ebx - 0x90], xmm1
movsd qword [edx + ebx - 0x98], xmm2
movsd qword [edx + ebx - 0xa0], xmm3
movsd qword [edx + ebx - 0xa8], xmm4
movsd qword [edx + ebx - 0xb0], xmm5
movsd qword [edx + ebx - 0xb8], xmm6
movsd qword [edx + ebx - 0xc0], xmm7
add edx, 0xffffff40
cmp esi, edi
jb 0x418953
mov dword [esp + 0x18], edi
lea esi, [esi + esi*2]
mov ecx, dword [esp + 0x10]
lea esi, [esi*8 + 1]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x4c]
dec esi
mov edi, esi
neg edi
cmp esi, ebx
jae 0x418aee
lea eax, [eax + ebx*8]
lea ecx, [ecx + ebx*8]
movsd xmm0, qword [ecx + edi*8 - 8]
inc esi
movsd qword [eax + edi*8 - 8], xmm0
dec edi
cmp esi, ebx
jb 0x418adc
mov dword [0x57c1a4], 0
jmp 0x418b00
mov dword [0x57c1a4], ebx
inc edx
cmp edx, dword [esp + 0x70]
jb 0x4186a8
nop
lea esi, [esi]
mov edi, dword [esp + 0x48]
inc edi
cmp edi, dword [esp + 0x1c]
jb 0x41865f
mov ebx, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
mov esi, dword [esp + 0x6c]
cmp dword [esp + 0x34], 0
jle 0x418c2d
mov edi, dword [esp + 0xc4]
lea edx, [ecx*8]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x58], 0
pxor xmm1, xmm1
mov eax, dword [edi]
pxor xmm0, xmm0
mov dword [esp + 0x48], eax
mov eax, edx
neg eax
imul eax, ebx
imul edx, ebx
mov edi, dword [esp + 0xac]
mov dword [esp + 0x54], edx
lea ebx, [edi + eax]
add ebx, edx
mov dword [esp + 0x4c], ebx
lea ebx, [edi + esi*8]
add ebx, eax
mov eax, ecx
sub eax, esi
add ebx, edx
mov edi, dword [esp + 0x58]
mov dword [esp + 0x50], ebx
mov ebx, dword [esp + 0x64]
test ebx, ebx
mov dword [esp + 0x44], edi
lea edx, [eax + 1]
mov dword [esp + 0x18], edx
lea edx, [ecx + 1]
mov dword [esp + 0xc], edx
jle 0x418c2d
mov dword [esp + 0x64], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], esi
mov ebx, edi
mov ecx, dword [esp + 0x4c]
xor edx, edx
mov eax, dword [esp + 0x50]
inc edi
mov dword [esp + 0x44], ebx
mov dword [esp + 0x58], edi
add ecx, ebx
mov dword [esp + 0x40], ecx
lea esi, [eax + ebx]
mov dword [esp + 0x3c], esi
xor eax, eax
mov esi, dword [esp + 0x48]
mov ebx, dword [esp + 0x68]
mov ecx, dword [esp + 0x38]
inc edx
cmp ecx, edx
jl 0x418bfc
mov edi, dword [esp + 0x60]
cmp edi, dword [esp + 0x58]
jge 0x418c03
cmp esi, 1
je 0x418c57
jmp 0x418c12
cmp ebx, dword [esp + 0x6c]
jle 0x418c12
cmp esi, 1
je 0x418d4f
cmp edx, dword [esp + 0x64]
lea eax, [eax + ebx*8]
jb 0x418bed
mov ebx, dword [esp + 0x44]
mov edi, dword [esp + 0x58]
add ebx, dword [esp + 0x54]
cmp edi, dword [esp + 0x34]
jb 0x418bbf
add esp, 0x84
pop ebx
pop edi
pop esi
ret 0x34
mov edi, 1
jmp 0x4184a4
mov esi, 1
jmp 0x4188f8
mov esi, 1
jmp 0x418acd
mov edi, dword [esp + 0x40]
test ebx, ebx
mov dword [0x57c13c], ebx
lea edi, [edi + eax]
mov dword [esp + 0x10], edi
jle 0x418d40
and edi, 0xf
mov dword [esp + 8], edi
je 0x418c8d
test byte [esp + 8], 7
jne 0x418d37
mov edi, 1
mov dword [esp + 8], edi
lea edi, [edi + 8]
cmp ebx, edi
jl 0x418d37
mov dword [esp + 0x2c], eax
mov eax, ebx
mov edi, dword [esp + 8]
sub eax, edi
and eax, 7
neg eax
add eax, ebx
mov dword [esp], eax
test edi, edi
mov eax, dword [esp + 0x2c]
jbe 0x418cde
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
mov ebx, edi
mov edi, dword [esp + 0x10]
movsd qword [edi + ecx*8], xmm0
inc ecx
cmp ecx, ebx
jb 0x418cc8
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0x68]
mov ecx, dword [esp + 0x38]
mov ecx, dword [esp]
mov ebx, dword [esp + 8]
mov edi, dword [esp + 0x10]
movaps xmmword [edi + ebx*8], xmm1
movaps xmmword [edi + ebx*8 + 0x10], xmm1
movaps xmmword [edi + ebx*8 + 0x20], xmm1
movaps xmmword [edi + ebx*8 + 0x30], xmm1
add ebx, 8
cmp ebx, ecx
jb 0x418ce9
mov dword [esp], ecx
mov ebx, dword [esp + 0x68]
mov ecx, dword [esp + 0x38]
cmp ebx, dword [esp]
jbe 0x418d28
mov ecx, dword [esp]
mov edi, dword [esp + 0x10]
movsd qword [edi + ecx*8], xmm0
inc ecx
cmp ecx, ebx
jb 0x418d1a
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0xc]
mov dword [0x57c140], edi
jmp 0x418c12
mov dword [esp], 0
jmp 0x418d0e
mov dword [0x57c140], 1
jmp 0x418c12
mov edi, dword [esp + 0x3c]
add edi, eax
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x1c]
test edi, edi
mov dword [0x57c13c], edi
jle 0x418d40
mov edi, dword [esp + 0x24]
and edi, 0xf
mov dword [esp + 0x28], edi
je 0x418d88
test byte [esp + 0x28], 7
jne 0x418e4f
mov edi, 1
mov dword [esp + 0x28], edi
lea edi, [edi + 8]
cmp edi, dword [esp + 0x1c]
jg 0x418e4f
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x30], edx
mov edx, eax
mov edi, dword [esp + 0x28]
sub edx, edi
and edx, 7
neg edx
add edx, eax
mov dword [esp + 0x20], edx
test edi, edi
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
jbe 0x418de8
mov dword [esp + 0x14], 0
mov ecx, dword [esp + 0x14]
mov ebx, edi
mov edi, dword [esp + 0x24]
movsd qword [edi + ecx*8], xmm0
inc ecx
cmp ecx, ebx
jb 0x418dd2
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x68]
mov ecx, dword [esp + 0x38]
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
movaps xmmword [edi + ebx*8], xmm1
movaps xmmword [edi + ebx*8 + 0x10], xmm1
movaps xmmword [edi + ebx*8 + 0x20], xmm1
movaps xmmword [edi + ebx*8 + 0x30], xmm1
add ebx, 8
cmp ebx, ecx
jb 0x418df4
mov dword [esp + 0x20], ecx
mov ebx, dword [esp + 0x68]
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x20]
cmp edi, dword [esp + 0x1c]
jae 0x418e40
mov ecx, edi
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
movsd qword [ebx + ecx*8], xmm0
inc ecx
cmp ecx, edi
jb 0x418e2e
mov ebx, dword [esp + 0x68]
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x18]
mov dword [0x57c140], edi
jmp 0x418c12
mov dword [esp + 0x20], 0
jmp 0x418e1a