Function at 0x4663ac
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push esi
push edi
push ebx
sub esp, 0x110
mov edi, 1
mov ebx, dword [eax]
xor esi, esi
mov dword [esp + 0xa8], edx
mov edx, dword [esp + 0x134]
mov dword [esp + 0xfc], ecx
lea eax, [ebx - 1]
mov ecx, dword [esp + 0x158]
test eax, eax
mov edx, dword [edx]
cmovle eax, edi
mov ecx, dword [ecx]
sub ecx, ebx
mov dword [esp + 0x78], eax
lea eax, [edx - 1]
mov dword [esp + 0x34], ecx
test ebx, ebx
mov dword [esp + 0xa4], edx
mov dword [esp + 0x30], eax
jle 0x46670f
mov edi, dword [esp + 0x148]
and edi, 0xf
je 0x466426
test edi, 3
jne 0x46783a
neg edi
add edi, 0x10
shr edi, 2
lea edx, [edi + 4]
cmp ebx, edx
jl 0x46783a
mov ecx, ebx
sub ecx, edi
and ecx, 3
neg ecx
add ecx, ebx
test edi, edi
jbe 0x4664b4
mov dword [esp + 0x14], eax
xor edx, edx
mov dword [esp + 0x10c], ebx
mov dword [esp + 0xa0], esi
mov dword [esp], ecx
mov dword [esp + 4], edi
mov eax, dword [esp + 0x154]
mov ebx, dword [esp + 0x148]
mov esi, dword [esp + 0x140]
xor ecx, ecx
mov edi, dword [esp + 0x144]
mov dword [ebx + edx*4], ecx
mov dword [esi + edx*4], ecx
mov esi, dword [esp + 0x138]
mov dword [edi + edx*4], ecx
mov edi, 1
mov dword [eax + edx*4], edi
mov dword [esi + edx*4], edi
inc edx
cmp edx, dword [esp + 4]
jb 0x466469
mov esi, dword [esp + 0xa0]
mov ecx, dword [esp]
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x10c]
mov edx, dword [esp + 0x154]
lea edx, [edx + edi*4]
test dl, 0xf
je 0x46652a
mov dword [esp + 0xa0], esi
mov dword [esp], ecx
pxor xmm1, xmm1
mov dword [esp + 0x14], eax
mov dword [esp + 0x10c], ebx
movdqa xmm0, xmmword [0x5c0fb0]
mov eax, dword [esp + 0x154]
mov edx, dword [esp + 0x148]
mov ecx, dword [esp + 0x144]
mov ebx, dword [esp + 0x140]
mov esi, dword [esp + 0x138]
movdqu xmmword [ebx + edi*4], xmm1
movdqu xmmword [ecx + edi*4], xmm1
movdqu xmmword [esi + edi*4], xmm0
movdqu xmmword [eax + edi*4], xmm0
movdqa xmmword [edx + edi*4], xmm1
add edi, 4
cmp edi, dword [esp]
jb 0x466507
jmp 0x46658f
mov dword [esp + 0xa0], esi
mov dword [esp], ecx
pxor xmm1, xmm1
mov dword [esp + 0x14], eax
mov dword [esp + 0x10c], ebx
movdqa xmm0, xmmword [0x5c0fb0]
mov eax, dword [esp + 0x154]
mov edx, dword [esp + 0x148]
mov ecx, dword [esp + 0x144]
mov ebx, dword [esp + 0x140]
mov esi, dword [esp + 0x138]
movdqu xmmword [ebx + edi*4], xmm1
movdqu xmmword [ecx + edi*4], xmm1
movdqu xmmword [esi + edi*4], xmm0
movdqa xmmword [eax + edi*4], xmm0
movdqa xmmword [edx + edi*4], xmm1
add edi, 4
cmp edi, dword [esp]
jb 0x46656e
mov esi, dword [esp + 0xa0]
mov ecx, dword [esp]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x10c]
cmp ecx, ebx
jae 0x46660f
mov dword [esp + 0x14], eax
mov dword [esp + 0x10c], ebx
mov dword [esp + 0xa0], esi
mov eax, dword [esp + 0x154]
mov ebx, dword [esp + 0x148]
mov esi, dword [esp + 0x140]
xor edx, edx
mov edi, dword [esp + 0x144]
mov dword [ebx + ecx*4], edx
mov dword [esi + ecx*4], edx
mov esi, dword [esp + 0x138]
mov dword [edi + ecx*4], edx
mov edi, 1
mov dword [eax + ecx*4], edi
mov dword [esi + ecx*4], edi
inc ecx
cmp ecx, dword [esp + 0x10c]
jb 0x4665c8
mov esi, dword [esp + 0xa0]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x10c]
mov edi, dword [esp + 0x14c]
and edi, 0xf
je 0x46662f
test edi, 3
jne 0x467841
neg edi
add edi, 0x10
shr edi, 2
lea edx, [edi + 4]
cmp ebx, edx
jl 0x467841
mov edx, ebx
sub edx, edi
and edx, 3
neg edx
add edx, ebx
test edi, edi
jbe 0x466680
mov dword [esp], edx
xor ecx, ecx
mov dword [esp + 0x10c], ebx
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x14c]
mov ebx, dword [esp + 0x12c]
mov eax, dword [ebx + ecx*4]
mov dword [edx + ecx*4], eax
inc ecx
cmp ecx, edi
jb 0x466667
mov edx, dword [esp]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x10c]
mov ecx, dword [esp + 0x12c]
lea ecx, [ecx + edi*4]
test cl, 0xf
je 0x4666b7
mov dword [esp + 0x10c], ebx
mov ecx, dword [esp + 0x14c]
mov ebx, dword [esp + 0x12c]
movdqu xmm0, xmmword [ebx + edi*4]
movdqa xmmword [ecx + edi*4], xmm0
add edi, 4
cmp edi, edx
jb 0x4666a4
jmp 0x4666dd
mov dword [esp + 0x10c], ebx
mov ecx, dword [esp + 0x14c]
mov ebx, dword [esp + 0x12c]
movdqa xmm0, xmmword [ebx + edi*4]
movdqa xmmword [ecx + edi*4], xmm0
add edi, 4
cmp edi, edx
jb 0x4666cc
mov ebx, dword [esp + 0x10c]
cmp edx, ebx
jae 0x467b6a
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14c]
mov edi, dword [esp + 0x12c]
mov eax, dword [edi + edx*4]
mov dword [ecx + edx*4], eax
inc edx
cmp edx, ebx
jb 0x4666fe
mov eax, dword [esp + 0x14]
test ebx, ebx
mov ecx, 0
jle 0x46678d
mov dword [esp + 0xa0], esi
mov edx, 1
mov dword [esp + 0x10c], ebx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 0x14c]
mov esi, dword [esp + 0x144]
mov eax, dword [ebx + edx*4 - 4]
test eax, eax
jle 0x467b37
mov ecx, dword [esi + eax*4 - 4]
test ecx, ecx
je 0x46675e
mov edi, dword [esp + 0x140]
mov dword [edi + ecx*4 - 4], edx
mov edi, dword [esp + 0x13c]
mov dword [esi + eax*4 - 4], edx
mov dword [edi + edx*4 - 4], ecx
inc edx
cmp edx, dword [esp + 0x10c]
jle 0x46673f
mov esi, dword [esp + 0xa0]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x10c]
cmp ecx, ebx
jge 0x467b25
mov edi, dword [esp + 0x130]
mov edx, dword [0x5e1794]
mov dword [esp + 0xac], edx
mov edx, dword [edi]
xor edi, edi
mov dword [esp + 0xc8], edx
mov edx, dword [esp + 0x154]
and edx, 0xf
mov dword [esp + 0xb0], edi
mov dword [esp + 0x3c], edi
mov edi, edx
and edi, 3
mov dword [esp + 8], edi
mov edi, edx
neg edi
add edi, 0x10
mov dword [esp + 0xcc], 2
shr edi, 2
mov dword [esp + 0x38], ecx
mov dword [esp + 0x10c], ebx
mov dword [esp + 0x6c], 1
movdqa xmm0, xmmword [0x5c0fb0]
mov dword [esp + 0xa0], esi
mov dword [esp], edi
mov dword [esp + 0xc], edx
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0xcc]
mov ebx, dword [esp + 0xac]
mov eax, dword [esp + 0x10c]
cmp eax, dword [esp + 0x6c]
jl 0x466858
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x10c]
mov esi, dword [esp + 0x144]
mov ebx, dword [esi + eax*4 - 4]
test ebx, ebx
mov dword [0x5e1794], ebx
jg 0x466854
inc eax
cmp eax, edx
jle 0x466841
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x13c]
mov edx, dword [eax + ebx*4 - 4]
test edx, edx
je 0x466876
mov eax, dword [esp + 0x140]
mov dword [eax + edx*4 - 4], 0
mov eax, dword [esp + 0x144]
mov edi, dword [esp + 0x6c]
mov esi, dword [esp + 0x38]
mov dword [eax + edi*4 - 4], edx
mov edx, esi
mov edi, dword [esp + 0x148]
neg edx
dec edx
mov eax, dword [edi + ebx*4 - 4]
mov dword [edi + ebx*4 - 4], edx
mov edx, dword [esp + 0x138]
mov edi, dword [edx + ebx*4 - 4]
add esi, edi
mov dword [esp + 0x40], edi
neg edi
mov dword [esp + 0x38], esi
test eax, eax
mov dword [edx + ebx*4 - 4], edi
jne 0x4669c0
mov eax, dword [esp + 0xa8]
xor edi, edi
mov esi, dword [esp + 0x12c]
mov dword [esp + 0xd0], edi
mov edx, dword [eax + ebx*4 - 4]
mov esi, dword [esi + ebx*4 - 4]
mov dword [esp + 0x18], edx
lea eax, [edx - 1]
lea esi, [esi + edx - 1]
cmp esi, edx
jl 0x4669b5
mov dword [esp + 0x58], esi
mov dword [esp + 0xb4], edx
mov dword [esp + 0xcc], ecx
mov dword [esp + 0xac], ebx
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0xfc]
mov edx, dword [esp + 0x138]
mov ebx, dword [ebx + esi*4 - 4]
mov edx, dword [edx + ebx*4 - 4]
test edx, edx
jle 0x466995
mov ecx, dword [esp + 0x138]
inc eax
add dword [esp + 0xd0], edx
neg edx
mov edi, dword [esp + 0x140]
mov dword [ecx + ebx*4 - 4], edx
mov edx, dword [esp + 0xfc]
mov ecx, dword [edi + ebx*4 - 4]
mov dword [edx + eax*4 - 4], ebx
mov edx, dword [esp + 0x13c]
mov edx, dword [edx + ebx*4 - 4]
test edx, edx
je 0x46696e
mov edi, dword [esp + 0x140]
mov dword [edi + edx*4 - 4], ecx
test ecx, ecx
je 0x46697f
mov ebx, dword [esp + 0x13c]
mov dword [ebx + ecx*4 - 4], edx
jmp 0x466995
mov ecx, dword [esp + 0x14c]
mov edi, dword [ecx + ebx*4 - 4]
mov ebx, dword [esp + 0x144]
mov dword [ebx + edi*4 - 4], edx
inc esi
cmp esi, dword [esp + 0x58]
jle 0x46690f
mov edx, dword [esp + 0xb4]
mov ecx, dword [esp + 0xcc]
mov ebx, dword [esp + 0xac]
xor esi, esi
mov dword [esp + 0x44], esi
jmp 0x467025
mov edx, dword [esp + 0xa8]
mov edi, dword [esp + 0x12c]
mov esi, dword [edx + ebx*4 - 4]
mov dword [esp + 0xc4], esi
mov esi, dword [edi + ebx*4 - 4]
xor edi, edi
sub esi, eax
mov dword [esp + 0x54], esi
lea esi, [eax + 1]
mov edx, dword [esp + 0xa4]
test esi, esi
mov dword [esp + 0xd0], edi
jle 0x466ffe
mov edi, ebx
mov dword [esp + 0xb4], edx
neg edi
mov dword [esp + 0xc0], 0
mov dword [esp + 0x50], edi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], eax
mov dword [esp + 0xcc], ecx
mov dword [esp + 0xac], ebx
mov edx, dword [esp + 0xfc]
mov eax, dword [esp + 0xc0]
lea ecx, [eax + 1]
cmp ecx, dword [esp + 0x64]
jle 0x466a59
mov esi, dword [esp + 0xac]
mov eax, dword [esp + 0xc4]
mov edi, dword [esp + 0x54]
jmp 0x466a82
mov ebx, dword [esp + 0xc4]
mov eax, dword [esp + 0xa8]
mov edi, dword [esp + 0x12c]
mov esi, dword [edx + ebx*4 - 4]
inc ebx
mov dword [esp + 0xc4], ebx
mov eax, dword [eax + esi*4 - 4]
mov edi, dword [edi + esi*4 - 4]
test edi, edi
jle 0x466faa
mov dword [esp + 0xd8], 0
mov dword [esp + 0xdc], edi
mov dword [esp + 0xb8], esi
mov dword [esp + 0x5c], ecx
mov ebx, dword [esp + 0xa4]
mov esi, dword [edx + eax*4 - 4]
inc eax
mov ecx, dword [esp + 0x138]
mov dword [esp + 0xe0], esi
mov edi, dword [ecx + esi*4 - 4]
test edi, edi
mov dword [esp + 0xe4], edi
jle 0x466f7c
cmp ebx, dword [esp + 0xc8]
jle 0x466f02
mov dword [esp + 0xa4], ebx
mov ebx, dword [esp + 0x12c]
mov ecx, dword [esp + 0xac]
mov esi, dword [esp + 0xc0]
neg esi
mov edi, dword [ebx + ecx*4 - 4]
lea esi, [esi + edi - 1]
mov dword [ebx + ecx*4 - 4], esi
test esi, esi
mov ebx, dword [esp + 0xa4]
jne 0x466b29
mov esi, ecx
mov ecx, dword [esp + 0xa8]
mov dword [ecx + esi*4 - 4], 0
jmp 0x466b3d
mov edi, ecx
mov esi, dword [esp + 0xa8]
mov ecx, dword [esp + 0xc4]
mov dword [esi + edi*4 - 4], ecx
mov ecx, dword [esp + 0xd8]
neg ecx
mov esi, dword [esp + 0xdc]
mov edi, dword [esp + 0x12c]
lea esi, [ecx + esi - 1]
mov ecx, dword [esp + 0xb8]
test esi, esi
mov dword [edi + ecx*4 - 4], esi
jne 0x466b78
mov eax, dword [esp + 0xa8]
mov dword [eax + ecx*4 - 4], 0
jmp 0x466b85
mov esi, ecx
mov ecx, dword [esp + 0xa8]
mov dword [ecx + esi*4 - 4], eax
mov eax, dword [esp + 0xb0]
inc eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xa0], eax
cmp dword [esp + 0x10c], 0
jle 0x466bde
xor edi, edi
mov dword [esp + 0xa4], ebx
xor esi, esi
mov eax, dword [esp + 0xa8]
mov ecx, dword [eax + edi*4]
test ecx, ecx
jle 0x466bcc
mov ebx, dword [edx + ecx*4 - 4]
mov dword [eax + edi*4], ebx
lea ebx, [esi - 1]
mov dword [edx + ecx*4 - 4], ebx
inc edi
dec esi
cmp edi, dword [esp + 0x10c]
jb 0x466bb7
mov ebx, dword [esp + 0xa4]
mov esi, dword [esp + 0xb4]
mov ecx, 1
lea esi, [esi - 1]
test esi, esi
jle 0x466d98
mov dword [esp + 0xa4], ebx
mov eax, 1
mov dword [esp + 0x108], esi
mov ebx, dword [edx + eax*4 - 4]
inc eax
neg ebx
test ebx, ebx
jle 0x466d84
mov edi, dword [esp + 0xa8]
lea esi, [edx + ecx*4]
mov dword [esp + 0xfc], edx
mov dword [esp + 0xf0], esi
mov edx, dword [edi + ebx*4 - 4]
mov dword [esi - 4], edx
mov esi, eax
mov edx, dword [esp + 0x12c]
sub esi, ecx
mov dword [edi + ebx*4 - 4], ecx
dec esi
mov ebx, dword [edx + ebx*4 - 4]
mov dword [esp + 0xf4], ebx
mov edx, dword [esp + 0xfc]
jne 0x466ce5
add ebx, 0xfffffffe
js 0x466d74
mov ebx, dword [esp + 0xf4]
lea esi, [ebx - 1]
lea ebx, [edx + ecx*4]
and ebx, 0xf
je 0x466c8a
test bl, 3
jne 0x467848
neg ebx
add ebx, 0x10
shr ebx, 2
lea edi, [ebx + 4]
cmp esi, edi
jl 0x467848
mov edi, esi
sub edi, ebx
and edi, 3
neg edi
add edi, esi
mov dword [esp + 0xf8], edi
test ebx, ebx
jbe 0x466cb2
xor edi, edi
inc edi
cmp edi, ebx
jb 0x466cad
mov edi, dword [esp + 0xf8]
add ebx, 4
cmp ebx, edi
jb 0x466cb9
mov dword [esp + 0xf8], edi
cmp esi, dword [esp + 0xf8]
jbe 0x466d74
mov ebx, dword [esp + 0xf8]
inc ebx
cmp ebx, esi
jb 0x466cdb
jmp 0x466d74
mov edi, ebx
lea ebx, [edi - 2]
lea edi, [edi - 1]
cmp edi, 6
jle 0x466d32
cmp esi, 0x40
jg 0x466cfc
cmp esi, 0xffffffc0
jge 0x466d32
mov esi, dword [esp + 0xf4]
test ebx, ebx
lea esi, [esi - 1]
js 0x466d74
mov dword [esp + 0xfc], edx
xor edi, edi
mov dword [esp + 0xec], eax
lea ebx, [edx + eax*4]
mov edx, dword [esp + 0xf0]
mov eax, dword [ebx + edi*4 - 4]
mov dword [edx + edi*4], eax
inc edi
cmp edi, esi
jb 0x466d24
jmp 0x466d66
mov esi, dword [esp + 0xf4]
test ebx, ebx
lea esi, [esi - 1]
js 0x466d74
mov dword [esp + 0xfc], edx
xor edi, edi
mov dword [esp + 0xec], eax
lea ebx, [edx + eax*4]
mov edx, dword [esp + 0xf0]
mov eax, dword [ebx + edi*4 - 4]
mov dword [edx + edi*4], eax
inc edi
cmp edi, esi
jb 0x466d5a
mov eax, dword [esp + 0xec]
mov edx, dword [esp + 0xfc]
mov ebx, dword [esp + 0xf4]
lea ecx, [ebx + ecx + 1]
dec ecx
lea eax, [eax + ebx - 1]
cmp eax, dword [esp + 0x108]
jle 0x466c08
mov ebx, dword [esp + 0xa4]
mov esi, dword [esp + 0xb4]
mov dword [esp + 0x98], ecx
sub esi, ecx
mov dword [esp + 0xbc], ecx
jne 0x466e28
lea eax, [ebx - 1]
cmp eax, dword [esp + 0xb4]
jl 0x466ece
sub ebx, dword [esp + 0xb4]
lea eax, [edx + ecx*4 + 0xc]
and eax, 0xf
je 0x466de1
test al, 3
jne 0x467856
neg eax
add eax, 0x10
shr eax, 2
lea esi, [eax + 4]
cmp ebx, esi
jl 0x467856
mov esi, ebx
sub esi, eax
and esi, 3
neg esi
add esi, ebx
test eax, eax
jbe 0x466e02
xor edi, edi
inc edi
cmp edi, eax
jb 0x466dfd
add eax, 4
cmp eax, esi
jb 0x466e02
add ecx, eax
cmp esi, ebx
jae 0x466ece
mov eax, dword [esp + 0x98]
lea ecx, [eax + esi + 1]
inc esi
cmp esi, ebx
jb 0x466e1a
jmp 0x466ece
mov eax, ebx
sub eax, dword [esp + 0xb4]
mov dword [esp + 0x9c], eax
cmp eax, 6
jle 0x466e88
cmp esi, 0x40
jg 0x466e47
cmp esi, 0xffffffc0
jge 0x466e88
dec ebx
cmp ebx, dword [esp + 0xb4]
jl 0x466ece
mov dword [esp + 0xfc], edx
lea ebx, [edx + ecx*4]
mov ecx, dword [esp + 0xb4]
xor eax, eax
mov edi, dword [esp + 0x9c]
lea esi, [edx + ecx*4]
mov edx, dword [esp + 0x98]
mov ecx, dword [esi + eax*4 - 4]
mov dword [ebx + eax*4 - 4], ecx
lea ecx, [eax + edx + 1]
inc eax
cmp eax, edi
jb 0x466e75
jmp 0x466ec7
dec ebx
cmp ebx, dword [esp + 0xb4]
jl 0x466ece
mov dword [esp + 0xfc], edx
lea ebx, [edx + ecx*4]
mov ecx, dword [esp + 0xb4]
xor eax, eax
mov edi, dword [esp + 0x9c]
lea esi, [edx + ecx*4]
mov edx, dword [esp + 0x98]
mov ecx, dword [esi + eax*4 - 4]
mov dword [ebx + eax*4 - 4], ecx
lea ecx, [eax + edx + 1]
inc eax
cmp eax, edi
jb 0x466eb6
mov edx, dword [esp + 0xfc]
mov ebx, dword [esp + 0xbc]
mov esi, dword [esp + 0xac]
mov dword [esp + 0xb4], ebx
mov ebx, ecx
mov eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0xa8]
mov edi, dword [ecx + esi*4 - 4]
mov eax, dword [ecx + eax*4 - 4]
mov dword [esp + 0xc4], edi
mov edi, dword [esp + 0x138]
mov ecx, dword [esp + 0xe0]
mov esi, dword [esp + 0xe4]
add dword [esp + 0xd0], esi
neg esi
mov dword [edi + ecx*4 - 4], esi
mov esi, dword [esp + 0x140]
mov edi, dword [esp + 0x13c]
mov dword [edx + ebx*4 - 4], ecx
inc ebx
mov esi, dword [esi + ecx*4 - 4]
mov ecx, dword [edi + ecx*4 - 4]
test ecx, ecx
je 0x466f4e
mov edi, dword [esp + 0x140]
mov dword [edi + ecx*4 - 4], esi
test esi, esi
je 0x466f5f
mov edi, dword [esp + 0x13c]
mov dword [edi + esi*4 - 4], ecx
jmp 0x466f7c
mov esi, dword [esp + 0x14c]
mov edi, dword [esp + 0xe0]
mov edi, dword [esi + edi*4 - 4]
mov esi, dword [esp + 0x144]
mov dword [esi + edi*4 - 4], ecx
mov ecx, dword [esp + 0xd8]
inc ecx
mov dword [esp + 0xd8], ecx
cmp ecx, dword [esp + 0xdc]
jb 0x466aae
mov dword [esp + 0xa4], ebx
mov esi, dword [esp + 0xb8]
mov ecx, dword [esp + 0x5c]
cmp esi, dword [esp + 0xac]
je 0x466fd1
mov ebx, dword [esp + 0xa8]
mov edi, dword [esp + 0x154]
mov eax, dword [esp + 0x50]
mov dword [ebx + esi*4 - 4], eax
mov dword [edi + esi*4 - 4], 0
mov dword [esp + 0xc0], ecx
cmp ecx, dword [esp + 0x60]
jb 0x466a35
mov dword [esp + 0xfc], edx
mov edx, dword [esp + 0xb4]
mov ecx, dword [esp + 0xcc]
mov ebx, dword [esp + 0xac]
mov edi, dword [esp + 0xa4]
mov esi, dword [esp + 0x30]
lea eax, [edi - 1]
sub edi, edx
add esi, edi
mov dword [esp + 0x44], edi
mov edi, dword [esp + 0x14]
cmp edi, esi
mov dword [esp + 0x30], esi
cmovl edi, esi
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x14c]
mov esi, dword [esp + 0xd0]
mov dword [edi + ebx*4 - 4], esi
mov edi, eax
mov esi, dword [esp + 0xa8]
sub edi, edx
inc edi
cmp ecx, dword [esp + 0x34]
mov dword [esi + ebx*4 - 4], edx
mov esi, dword [esp + 0x12c]
mov dword [esi + ebx*4 - 4], edi
jl 0x46712b
cmp dword [esp + 0x10c], 0
jle 0x467126
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x467080
cmp dword [esp + 8], 0
jne 0x46785d
mov ecx, dword [esp]
lea esi, [ecx + 4]
cmp esi, dword [esp + 0x10c]
jg 0x46785d
mov edi, dword [esp + 0x10c]
mov esi, edi
sub esi, ecx
and esi, 3
neg esi
add esi, edi
test ecx, ecx
jbe 0x4670d1
xor edi, edi
mov dword [esp + 0xac], ebx
mov ebx, edi
mov edi, dword [esp + 0x154]
cmp dword [edi + ebx*4], 0
je 0x4670c5
mov dword [edi + ebx*4], 1
inc ebx
cmp ebx, ecx
jb 0x4670b8
mov ebx, dword [esp + 0xac]
mov edi, dword [esp + 0x154]
movdqa xmm2, xmmword [edi + ecx*4]
pxor xmm1, xmm1
pcmpeqd xmm1, xmm2
pand xmm2, xmm1
pandn xmm1, xmm0
por xmm2, xmm1
movdqa xmmword [edi + ecx*4], xmm2
add ecx, 4
cmp ecx, esi
jb 0x4670d8
cmp esi, dword [esp + 0x10c]
jae 0x467126
mov ecx, dword [esp + 0x10c]
mov edi, dword [esp + 0x154]
cmp dword [edi + esi*4], 0
je 0x467121
mov dword [edi + esi*4], 1
inc esi
cmp esi, ecx
jb 0x467114
mov ecx, 2
mov esi, edx
cmp eax, edx
jl 0x467222
mov dword [esp + 0xb4], edx
mov dword [esp + 0x80], eax
mov dword [esp + 0xcc], ecx
mov dword [esp + 0xac], ebx
mov edx, dword [esp + 0xfc]
mov eax, dword [edx + esi*4 - 4]
mov ecx, dword [esp + 0x148]
mov ecx, dword [ecx + eax*4 - 4]
test ecx, ecx
jle 0x4671f8
mov ebx, dword [esp + 0x138]
mov edi, dword [ebx + eax*4 - 4]
neg edi
mov dword [esp + 0xd4], edi
mov ebx, dword [esp + 0xcc]
sub ebx, edi
mov edi, dword [esp + 0xa8]
mov dword [esp + 0x7c], ebx
mov eax, dword [edi + eax*4 - 4]
lea ecx, [ecx + eax - 1]
cmp ecx, eax
jl 0x4671f8
mov dword [esp + 0xe8], ecx
mov dword [esp + 0x68], esi
mov ebx, dword [esp + 0xcc]
mov ecx, dword [esp + 0x154]
mov esi, dword [edx + eax*4 - 4]
mov edi, dword [ecx + esi*4 - 4]
cmp edi, ebx
jl 0x4671d1
sub edi, dword [esp + 0xd4]
jmp 0x4671e4
test edi, edi
je 0x4671e4
mov edi, dword [esp + 0x14c]
mov edi, dword [edi + esi*4 - 4]
add edi, dword [esp + 0x7c]
inc eax
mov dword [ecx + esi*4 - 4], edi
cmp eax, dword [esp + 0xe8]
jle 0x4671bc
mov esi, esi
mov esi, dword [esp + 0x68]
inc esi
cmp esi, dword [esp + 0x80]
jle 0x467158
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0xb4]
mov ecx, dword [esp + 0xcc]
mov ebx, dword [esp + 0xac]
mov edi, edx
cmp eax, edx
jl 0x467465
mov esi, ebx
neg esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x84], edi
mov dword [esp + 0x80], eax
mov dword [esp + 0xb4], edx
mov dword [esp + 0xcc], ecx
mov dword [esp + 0xac], ebx
mov ecx, dword [esp + 0xfc]
mov eax, dword [esp + 0x84]
mov ebx, dword [esp + 0xa8]
mov edx, dword [esp + 0x148]
mov ecx, dword [ecx + eax*4 - 4]
mov edi, dword [ebx + ecx*4 - 4]
mov ebx, edi
mov esi, dword [edx + ecx*4 - 4]
mov dword [esp + 0x90], edi
lea eax, [esi + edi - 1]
xor esi, esi
mov dword [esp + 0x94], esi
cmp eax, edi
jl 0x4672f3
mov dword [esp + 0x104], eax
mov dword [esp + 0x74], ecx
mov edx, esi
mov eax, dword [esp + 0xfc]
mov ecx, dword [esp + 0x154]
mov eax, dword [eax + ebx*4 - 4]
mov ecx, dword [ecx + eax*4 - 4]
test ecx, ecx
je 0x4672d7
sub ecx, dword [esp + 0xcc]
add edx, eax
add esi, ecx
mov ecx, dword [esp + 0xfc]
mov dword [ecx + edi*4 - 4], eax
inc edi
inc ebx
cmp ebx, dword [esp + 0x104]
jle 0x4672a6
mov dword [esp + 0x94], edx
mov eax, dword [esp + 0x104]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x90]
mov ebx, edi
sub ebx, edx
inc ebx
mov dword [esp + 0x8c], ebx
mov ebx, dword [esp + 0x12c]
mov dword [esp + 0x88], edi
mov ebx, dword [ebx + ecx*4 - 4]
lea ebx, [ebx + edx - 1]
mov dword [esp + 0x100], ebx
cmp ebx, eax
lea edx, [eax + 1]
jle 0x467374
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x94]
mov eax, dword [esp + 0xfc]
mov ebx, dword [esp + 0x138]
mov eax, dword [eax + edx*4 - 4]
mov ebx, dword [ebx + eax*4 - 4]
test ebx, ebx
jle 0x46735f
add esi, ebx
add ecx, eax
mov ebx, dword [esp + 0xfc]
mov dword [ebx + edi*4 - 4], eax
inc edi
inc edx
cmp edx, dword [esp + 0x100]
jle 0x467335
mov dword [esp + 0x94], ecx
mov ecx, dword [esp + 0x74]
cmp dword [esp + 0x8c], 1
je 0x467ad7
mov edx, dword [esp + 0x148]
mov eax, dword [esp + 0x8c]
mov dword [edx + ecx*4 - 4], eax
mov edx, dword [esp + 0x14c]
mov eax, dword [edx + ecx*4 - 4]
cmp eax, esi
cmovl esi, eax
mov dword [edx + ecx*4 - 4], esi
mov eax, dword [esp + 0xfc]
mov edx, dword [esp + 0x88]
mov esi, dword [eax + edx*4 - 4]
mov dword [eax + edi*4 - 4], esi
mov esi, dword [esp + 0x90]
sub edi, esi
inc edi
mov ebx, dword [eax + esi*4 - 4]
mov dword [eax + edx*4 - 4], ebx
mov edx, dword [esp + 0xac]
mov dword [eax + esi*4 - 4], edx
mov eax, dword [esp + 0x12c]
mov dword [eax + ecx*4 - 4], edi
mov eax, dword [esp + 0x94]
cdq
mov edi, dword [esp + 0x78]
idiv edi
inc edx
mov eax, dword [esp + 0x144]
mov eax, dword [eax + edx*4 - 4]
test eax, eax
jle 0x467ab6
mov edi, dword [esp + 0x140]
mov esi, dword [esp + 0x13c]
mov ebx, dword [edi + eax*4 - 4]
mov dword [esi + ecx*4 - 4], ebx
mov dword [edi + eax*4 - 4], ecx
mov eax, dword [esp + 0x140]
mov dword [eax + ecx*4 - 4], edx
mov eax, dword [esp + 0x84]
inc eax
mov dword [esp + 0x84], eax
cmp eax, dword [esp + 0x80]
jle 0x467257
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0xb4]
mov ecx, dword [esp + 0xcc]
mov ebx, dword [esp + 0xac]
mov edi, dword [esp + 0x14c]
mov esi, dword [esp + 0xd0]
mov dword [edi + ebx*4 - 4], esi
mov edi, dword [esp + 0x3c]
cmp edi, esi
cmovl edi, esi
add ecx, edi
mov dword [esp + 0x3c], edi
cmp ecx, dword [esp + 0x34]
jl 0x46755f
cmp dword [esp + 0x10c], 0
jle 0x46755a
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x4674b4
cmp dword [esp + 8], 0
jne 0x467864
mov ecx, dword [esp]
lea esi, [ecx + 4]
cmp esi, dword [esp + 0x10c]
jg 0x467864
mov edi, dword [esp + 0x10c]
mov esi, edi
sub esi, ecx
and esi, 3
neg esi
add esi, edi
test ecx, ecx
jbe 0x467505
xor edi, edi
mov dword [esp + 0xac], ebx
mov ebx, edi
mov edi, dword [esp + 0x154]
cmp dword [edi + ebx*4], 0
je 0x4674f9
mov dword [edi + ebx*4], 1
inc ebx
cmp ebx, ecx
jb 0x4674ec
mov ebx, dword [esp + 0xac]
mov edi, dword [esp + 0x154]
movdqa xmm2, xmmword [edi + ecx*4]
pxor xmm1, xmm1
pcmpeqd xmm1, xmm2
pand xmm2, xmm1
pandn xmm1, xmm0
por xmm2, xmm1
movdqa xmmword [edi + ecx*4], xmm2
add ecx, 4
cmp ecx, esi
jb 0x46750c
cmp esi, dword [esp + 0x10c]
jae 0x46755a
mov ecx, dword [esp + 0x10c]
mov edi, dword [esp + 0x154]
cmp dword [edi + esi*4], 0
je 0x467555
mov dword [edi + esi*4], 1
inc esi
cmp esi, ecx
jb 0x467548
mov ecx, 2
mov esi, edx
cmp eax, edx
jl 0x4675b1
mov dword [esp + 0xcc], ecx
mov dword [esp + 0xac], ebx
mov dword [esp + 0xb4], edx
mov ebx, dword [esp + 0x138]
mov ecx, dword [esp + 0xfc]
mov edx, dword [ecx + esi*4 - 4]
cmp dword [ebx + edx*4 - 4], 0
jl 0x46786b
inc esi
cmp esi, eax
jle 0x467588
mov edx, dword [esp + 0xb4]
mov ecx, dword [esp + 0xcc]
mov ebx, dword [esp + 0xac]
mov edi, dword [esp + 0x10c]
mov esi, edx
sub edi, dword [esp + 0x38]
mov dword [esp + 0x70], edi
cmp eax, edx
mov dword [esp + 0x48], edx
jl 0x4676c7
mov dword [esp + 0xac], ebx
mov dword [esp + 0x80], eax
mov dword [esp + 0xb4], edx
mov dword [esp + 0xcc], ecx
mov ebx, dword [esp + 0x48]
mov ecx, dword [esp + 0xfc]
mov eax, dword [esp + 0x138]
mov ecx, dword [ecx + ebx*4 - 4]
mov edx, dword [eax + ecx*4 - 4]
neg edx
test edx, edx
jle 0x4676a4
mov eax, dword [esp + 0x138]
mov edi, dword [esp + 0x14c]
mov dword [eax + ecx*4 - 4], edx
mov eax, dword [esp + 0xd0]
sub eax, edx
neg edx
add edx, dword [esp + 0x70]
add eax, dword [edi + ecx*4 - 4]
cmp eax, edx
mov edi, dword [esp + 0x144]
cmovl edx, eax
test edx, edx
jg 0x467648
mov edx, 1
mov eax, dword [edi + edx*4 - 4]
test eax, eax
je 0x46765b
mov edi, dword [esp + 0x140]
mov dword [edi + eax*4 - 4], ecx
mov edi, dword [esp + 0x13c]
mov dword [edi + ecx*4 - 4], eax
mov eax, dword [esp + 0x140]
mov edi, dword [esp + 0x6c]
cmp edi, edx
mov dword [eax + ecx*4 - 4], 0
cmovge edi, edx
mov eax, dword [esp + 0x144]
mov dword [esp + 0x6c], edi
mov dword [eax + edx*4 - 4], ecx
mov eax, dword [esp + 0x14c]
mov dword [eax + ecx*4 - 4], edx
mov edx, dword [esp + 0xfc]
mov dword [edx + esi*4 - 4], ecx
inc esi
inc ebx
cmp ebx, dword [esp + 0x80]
jle 0x4675ee
mov edx, dword [esp + 0xb4]
mov ecx, dword [esp + 0xcc]
mov ebx, dword [esp + 0xac]
mov edi, dword [esp + 0x138]
mov eax, dword [esp + 0x40]
add eax, dword [esp + 0xd0]
mov dword [edi + ebx*4 - 4], eax
mov eax, esi
sub eax, edx
mov edx, dword [esp + 0x12c]
mov dword [edx + ebx*4 - 4], eax
jne 0x467706
mov edi, dword [esp + 0xa8]
xor edx, edx
mov dword [edi + ebx*4 - 4], edx
mov edi, dword [esp + 0x154]
mov dword [edi + ebx*4 - 4], edx
mov edx, dword [esp + 0x30]
add eax, edx
mov edi, dword [esp + 0x44]
sub eax, edi
test edi, edi
mov edi, dword [esp + 0xa4]
cmovne edx, eax
cmovne edi, esi
mov eax, dword [esp + 0x10c]
mov dword [esp + 0xa4], edi
mov dword [esp + 0x30], edx
cmp eax, dword [esp + 0x38]
jg 0x466822
mov edx, dword [esp + 0x150]
mov esi, dword [esp + 0xa0]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x10c]
mov dword [edx], esi
test ebx, ebx
jle 0x467825
mov dword [esp + 0x14], eax
mov edx, 1
mov dword [esp + 0x10c], ebx
mov ecx, dword [esp + 0x148]
mov esi, dword [esp + 0xa8]
cmp dword [ecx + edx*4 - 4], 0
jne 0x4677e8
mov ebx, dword [esi + edx*4 - 4]
neg ebx
lea edi, [ecx + ebx*4]
mov eax, dword [edi - 4]
test eax, eax
jl 0x4677a5
mov ebx, dword [esi + ebx*4 - 4]
neg ebx
lea edi, [ecx + ebx*4]
mov eax, dword [edi - 4]
test eax, eax
jge 0x467795
mov dword [esp], edx
neg eax
mov dword [esp + 8], edi
neg ebx
mov dword [esp + 4], edx
mov edi, dword [esp]
lea edx, [edi*4]
mov edi, dword [esi + edx - 4]
neg edi
mov dword [esi + edx - 4], ebx
cmp dword [ecx + edx - 4], 0
jne 0x4677d4
mov dword [ecx + edx - 4], eax
inc eax
cmp dword [ecx + edi*4 - 4], 0
jge 0x4677b7
mov edi, dword [esp + 8]
neg eax
mov edx, dword [esp + 4]
mov dword [edi - 4], eax
inc edx
cmp edx, dword [esp + 0x10c]
jle 0x46777e
xor ecx, ecx
mov ebx, dword [esp + 0x10c]
mov edi, dword [esp + 0x148]
mov esi, dword [esp + 0x140]
mov eax, dword [edi + ecx*4]
cdq
xor eax, edx
sub eax, edx
lea edx, [ecx + 1]
mov dword [edi + ecx*4], eax
mov ecx, edx
cmp edx, ebx
mov dword [esi + eax*4 - 4], edx
jb 0x467809
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x134]
mov dword [edx], eax
add esp, 0x110
pop ebx
pop edi
pop esi
ret 0x3c
xor ecx, ecx
jmp 0x4665a4
xor edx, edx
jmp 0x4666e4
xor ebx, ebx
mov dword [esp + 0xf8], ebx
jmp 0x466cc7
xor esi, esi
jmp 0x466e0b
xor esi, esi
jmp 0x4670fd
xor esi, esi
jmp 0x467531
mov edi, dword [esp + 0x140]
mov edi, dword [edi + edx*4 - 4]
mov edx, dword [esp + 0x144]
mov edx, dword [edx + edi*4 - 4]
test edx, edx
je 0x467597
jl 0x467a9c
mov edi, dword [esp + 0x140]
mov dword [esp + 4], esi
mov esi, dword [edi + edx*4 - 4]
mov dword [esp + 0x20], esi
mov dword [edi + edx*4 - 4], 0
mov esi, dword [esp + 4]
cmp dword [esp + 0x20], 0
je 0x467597
mov edx, dword [esp + 0x13c]
mov edi, dword [esp + 0x20]
mov edx, dword [edx + edi*4 - 4]
test edx, edx
je 0x467597
mov dword [esp + 0x80], eax
mov dword [esp + 4], esi
mov ebx, edi
mov eax, dword [esp + 0x13c]
mov edi, dword [esp + 0x148]
lea esi, [ebx*4]
mov ecx, dword [esp + 0x12c]
mov dword [esp + 0x1c], esi
mov edi, dword [edi + esi - 4]
mov dword [esp + 0x4c], edi
mov edi, dword [esp + 0xa8]
mov ecx, dword [ecx + esi - 4]
mov esi, dword [edi + esi - 4]
lea edi, [esi + 1]
lea esi, [esi + ecx - 1]
cmp esi, edi
jl 0x467960
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], ebx
mov edx, dword [esp + 0xcc]
mov ebx, dword [esp + 0xfc]
mov ecx, dword [esp + 0x154]
mov eax, dword [ebx + edi*4 - 4]
inc edi
cmp edi, esi
mov dword [ecx + eax*4 - 4], edx
jle 0x467940
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x13c]
mov esi, ebx
neg esi
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x12c]
cmp ecx, dword [eax + edx*4 - 4]
jne 0x467986
mov esi, dword [esp + 0x148]
mov eax, dword [esp + 0x4c]
cmp eax, dword [esi + edx*4 - 4]
je 0x4679ab
mov eax, dword [esp + 0x13c]
mov ebx, edx
mov edx, dword [eax + edx*4 - 4]
test edx, edx
jne 0x467968
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x13c]
mov ebx, dword [eax + edx - 4]
jmp 0x467a5a
mov eax, dword [esp + 0xa8]
mov esi, dword [eax + edx*4 - 4]
lea edi, [esi + 1]
lea eax, [ecx + esi - 1]
cmp eax, edi
jl 0x467a03
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], edx
mov ecx, edi
mov ebx, dword [esp + 0xcc]
mov edi, dword [esp + 0xfc]
mov esi, dword [esp + 0x154]
mov edx, dword [edi + ecx*4 - 4]
cmp ebx, dword [esi + edx*4 - 4]
jne 0x467a8f
inc ecx
cmp ecx, eax
jle 0x4679e4
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0xa8]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x138]
mov dword [edi + edx*4 - 4], esi
mov edi, dword [esp + 0x1c]
mov esi, dword [eax + edx*4 - 4]
add dword [eax + edi - 4], esi
xor esi, esi
mov dword [eax + edx*4 - 4], esi
mov eax, dword [esp + 0x148]
mov dword [eax + edx*4 - 4], esi
mov eax, dword [esp + 0x13c]
mov edx, dword [eax + edx*4 - 4]
test edx, edx
mov dword [eax + ebx*4 - 4], edx
jne 0x467968
mov edx, edi
mov eax, dword [esp + 0x13c]
mov ebx, dword [eax + edx - 4]
inc dword [esp + 0xcc]
test ebx, ebx
je 0x467a71
mov edx, dword [eax + ebx*4 - 4]
test edx, edx
jne 0x4678e4
mov esi, dword [esp + 4]
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0xfc]
mov ebx, dword [esp + 0x138]
jmp 0x467597
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
jmp 0x467986
neg edx
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x144]
mov dword [edx + edi*4 - 4], 0
jmp 0x4678ae
mov ebx, dword [esp + 0x13c]
neg eax
mov esi, dword [esp + 0x144]
mov dword [ebx + ecx*4 - 4], eax
mov eax, ecx
neg eax
mov dword [esi + edx*4 - 4], eax
jmp 0x467422
cmp edi, dword [esp + 0x88]
jne 0x467382
mov edx, dword [esp + 0xa8]
xor edi, edi
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x138]
mov dword [edx + ecx*4 - 4], eax
mov eax, dword [esp + 0x148]
mov ebx, dword [esi + ecx*4 - 4]
neg ebx
sub dword [esp + 0xd0], ebx
add dword [esp + 0x40], ebx
add dword [esp + 0x38], ebx
mov dword [esi + ecx*4 - 4], edi
mov dword [eax + ecx*4 - 4], edi
jmp 0x46742d
mov edx, dword [esp + 0x150]
mov dword [edx], 0
jmp 0x467758
mov ecx, dword [esp + 0x148]
mov eax, dword [esp + 0x38]
inc eax
mov dword [esp + 0x38], eax
neg eax
mov dword [ecx + edx*4 - 4], eax
xor eax, eax
mov edi, dword [esp + 0xa8]
mov ecx, dword [esp + 0x154]
mov dword [edi + edx*4 - 4], eax
mov dword [ecx + edx*4 - 4], eax
jmp 0x46676d
test ebx, ebx
jmp 0x46670f